aboutsummaryrefslogtreecommitdiffstats
path: root/test/Analysis/Andersens
diff options
context:
space:
mode:
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
+}