blob: bc118a38e90ce98dbbaab7d7802200075f67fdc8 [file] [log] [blame]
Chris Lattner52112962003-12-11 19:16:30 +00001; This testcase consists of alias relations which should be completely
2; resolvable by basicaa, but require analysis of getelementptr constant exprs.
3
4; RUN: llvm-as < %s | opt -aa-eval -print-may-aliases 2>&1 -disable-output | not grep May:
5
6%T = type { uint, [10 x ubyte] }
7
8%G = external global %T
9
10void %test() {
11 %D = getelementptr %T* %G, long 0, ubyte 0
12 %E = getelementptr %T* %G, long 0, ubyte 1, long 5
13 %F = getelementptr uint* getelementptr (%T* %G, long 0, ubyte 0), long 0
14 %G = getelementptr [10 x ubyte]* getelementptr (%T* %G, long 0, ubyte 1), long 0, long 5
15
16 ret void
17}