diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-07-05 23:03:46 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-07-05 23:03:46 +0000 |
commit | e56ac813e69450e6b1c7c0a52e21e5a1735e91f6 (patch) | |
tree | dccc81f05b1662caf1cf0d5548e348fd36bc8e79 /test/Linker | |
parent | 194c2cef8a0036dd4e6295d048f37d6130f92389 (diff) |
Testcase for PR2146
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53155 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Linker')
-rw-r--r-- | test/Linker/2008-07-06-AliasFnDecl.ll | 14 | ||||
-rw-r--r-- | test/Linker/2008-07-06-AliasFnDecl2.ll | 13 |
2 files changed, 27 insertions, 0 deletions
diff --git a/test/Linker/2008-07-06-AliasFnDecl.ll b/test/Linker/2008-07-06-AliasFnDecl.ll new file mode 100644 index 0000000000..dca9cd8e8f --- /dev/null +++ b/test/Linker/2008-07-06-AliasFnDecl.ll @@ -0,0 +1,14 @@ +; PR2146 +; RUN: llvm-as %s -o %t1.bc -f +; RUN: llvm-as %p/2008-07-06-AliasFnDecl2.ll -o %t2.bc -f +; RUN: llvm-link %t1.bc %t2.bc -f -o %t3.bc + +@b = alias void ()* @a + +define void @a() nounwind { +entry: + br label %return + +return: + ret void +} diff --git a/test/Linker/2008-07-06-AliasFnDecl2.ll b/test/Linker/2008-07-06-AliasFnDecl2.ll new file mode 100644 index 0000000000..2380dffff6 --- /dev/null +++ b/test/Linker/2008-07-06-AliasFnDecl2.ll @@ -0,0 +1,13 @@ +; This file is used by 2008-07-06-AliasFnDecl2.ll +; RUN: true + +define void @c() nounwind { +entry: + call void @b( ) nounwind + br label %return + +return: + ret void +} + +declare void @b() |