diff options
Diffstat (limited to 'test/CodeGen/X86/extern_weak.ll')
-rw-r--r-- | test/CodeGen/X86/extern_weak.ll | 11 |
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(...) |