blob: 1d122fd033c506d842acd4e17748b1f5363b5d36 [file] [log] [blame]
Chris Lattner2bde8bd2003-11-04 16:40:40 +00001; This testcase consists of alias relations which should be completely
2; resolvable by basicaa.
3
Reid Spencer4cda1902007-04-16 15:15:52 +00004; RUN: llvm-upgrade < %s | llvm-as | \
5; RUN: opt -aa-eval -print-may-aliases -disable-output |& not grep May:
Chris Lattner2bde8bd2003-11-04 16:40:40 +00006
7%T = type { uint, [10 x ubyte] }
8
9void %test(%T* %P) {
10 %A = getelementptr %T* %P, long 0
Reid Spencere5d4efa2006-11-23 15:14:52 +000011 %B = getelementptr %T* %P, long 0, uint 0
12 %C = getelementptr %T* %P, long 0, uint 1
13 %D = getelementptr %T* %P, long 0, uint 1, long 0
14 %E = getelementptr %T* %P, long 0, uint 1, long 5
Chris Lattner2bde8bd2003-11-04 16:40:40 +000015 ret void
16}