blob: 911f78cc827ea6f27d4dba627e892923649ac1dc [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
Dan Gohman3c7d3082009-09-11 18:01:28 +00004; RUN: opt < %s -aa-eval -print-may-aliases -disable-output \
Tanya Lattnera695f012008-02-14 06:56:27 +00005; 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}