blob: 76a644e008ef4d6e856847f911507d1777844219 [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 Gohman1b4c27772009-09-08 16:50:01 +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}