summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/test/Analysis/BasicAA/2009-03-04-GEPNoalias.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/Analysis/BasicAA/2009-03-04-GEPNoalias.ll b/llvm/test/Analysis/BasicAA/2009-03-04-GEPNoalias.ll
new file mode 100644
index 00000000000..754d7a096c4
--- /dev/null
+++ b/llvm/test/Analysis/BasicAA/2009-03-04-GEPNoalias.ll
@@ -0,0 +1,9 @@
+; RUN: llvm-as < %s | opt -aa-eval -basicaa |& grep {0 no alias}
+
+declare noalias i32* @noalias()
+
+define void @test(i32 %x) {
+ %a = call i32* @noalias()
+ %b = getelementptr i32* %a, i32 %x
+ ret void
+}
OpenPOWER on IntegriCloud