aboutsummaryrefslogtreecommitdiffstats
path: root/test/Analysis/Andersens
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2008-03-21 20:22:11 +0000
committerDuncan Sands <baldrick@free.fr>2008-03-21 20:22:11 +0000
commit4c88cc9c2a2e52bd2abffa74a763c52be4c1e2e2 (patch)
tree613404909bb44e50cbd8c59c02f8077a8611f2e1 /test/Analysis/Andersens
parent70366b96a5d70b232c3d42e76b83e6b54190bdb7 (diff)
downloadexternal_llvm-4c88cc9c2a2e52bd2abffa74a763c52be4c1e2e2.zip
external_llvm-4c88cc9c2a2e52bd2abffa74a763c52be4c1e2e2.tar.gz
external_llvm-4c88cc9c2a2e52bd2abffa74a763c52be4c1e2e2.tar.bz2
Testcase for PR2160.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48655 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis/Andersens')
-rw-r--r--test/Analysis/Andersens/2008-03-19-External.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Analysis/Andersens/2008-03-19-External.ll b/test/Analysis/Andersens/2008-03-19-External.ll
new file mode 100644
index 0000000..c4f1ff0
--- /dev/null
+++ b/test/Analysis/Andersens/2008-03-19-External.ll
@@ -0,0 +1,12 @@
+; RUN: llvm-as < %s | opt -anders-aa -gvn | llvm-dis | not grep undef
+; PR2160
+
+declare void @f(i32*)
+
+define i32 @g() {
+entry:
+ %tmp = alloca i32 ; <i32*> [#uses=2]
+ call void @f( i32* %tmp )
+ %tmp2 = load i32* %tmp ; <i32> [#uses=1]
+ ret i32 %tmp2
+}