blob: 99eae1660de82a53384003831a60b0821c443d44 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; This testcase consists of alias relations which should be completely
2; resolvable by basicaa.
3
Tanya Lattnera695f012008-02-14 06:56:27 +00004; RUN: llvm-as < %s | opt -aa-eval -print-may-aliases -disable-output \
5; RUN: |& not grep May:
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006
Tanya Lattnera695f012008-02-14 06:56:27 +00007%T = type { i32, [10 x i8] }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008
Tanya Lattnera695f012008-02-14 06:56:27 +00009define void @test(%T* %P) {
10 %A = getelementptr %T* %P, i64 0
11 %B = getelementptr %T* %P, i64 0, i32 0
12 %C = getelementptr %T* %P, i64 0, i32 1
13 %D = getelementptr %T* %P, i64 0, i32 1, i64 0
14 %E = getelementptr %T* %P, i64 0, i32 1, i64 5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015 ret void
16}