diff options
Diffstat (limited to 'test/Linker/unnamed-addr2-a.ll')
-rw-r--r-- | test/Linker/unnamed-addr2-a.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Linker/unnamed-addr2-a.ll b/test/Linker/unnamed-addr2-a.ll new file mode 100644 index 0000000000..f43f19a8f0 --- /dev/null +++ b/test/Linker/unnamed-addr2-a.ll @@ -0,0 +1,11 @@ +; RUN: llvm-link %s %p/unnamed-addr2-b.ll -S -o - | FileCheck %s + +define i32 @bar() { +entry: + %call = tail call i32 @foo() + ret i32 %call +} + +declare i32 @foo() + +; CHECK: define unnamed_addr i32 @foo() |