blob: 3b37b2c07c70b39085c74d8a887445d7353aaaeb [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
Chris Lattnerde454ff2003-12-11 22:49:32 +000014 %X = getelementptr [10 x ubyte]* getelementptr (%T* %G, long 0, ubyte 1), long 0, long 5
Chris Lattner52112962003-12-11 19:16:30 +000015
16 ret void
17}