aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/extern_weak.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-12-01 09:18:20 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-12-01 09:18:20 +0000
commit0eb5f9496302c1c46cce618cc0bd602dbe76cce2 (patch)
tree31a6f6eab1c44279ec7597f9aae881cf07bb0db3 /test/CodeGen/X86/extern_weak.ll
parent81cf60fceb411b5cc8a161d4332c5c9d0784f326 (diff)
Add a extern weak test case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32070 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/extern_weak.ll')
-rw-r--r--test/CodeGen/X86/extern_weak.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/X86/extern_weak.ll b/test/CodeGen/X86/extern_weak.ll
new file mode 100644
index 0000000000..4200bbf1a8
--- /dev/null
+++ b/test/CodeGen/X86/extern_weak.ll
@@ -0,0 +1,11 @@
+; RUN: llvm-as < %s | llc -mtriple=i686-apple-darwin | grep weak_reference | wc -l | grep 2
+
+%Y = global int (sbyte*)* %X
+declare extern_weak int %X(sbyte*)
+
+void %bar() {
+ tail call void (...)* %foo( )
+ ret void
+}
+
+declare extern_weak void %foo(...)