aboutsummaryrefslogtreecommitdiffstats
path: root/test/Linker/2008-07-06-AliasFnDecl.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Linker/2008-07-06-AliasFnDecl.ll')
-rw-r--r--test/Linker/2008-07-06-AliasFnDecl.ll14
1 files changed, 14 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 0000000..dca9cd8
--- /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
+}