Chris Lattner | 5211296 | 2003-12-11 19:16:30 +0000 | [diff] [blame] | 1 | ; 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 | |
| 10 | void %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 Lattner | de454ff | 2003-12-11 22:49:32 +0000 | [diff] [blame] | 14 | %X = getelementptr [10 x ubyte]* getelementptr (%T* %G, long 0, ubyte 1), long 0, long 5 |
Chris Lattner | 5211296 | 2003-12-11 19:16:30 +0000 | [diff] [blame] | 15 | |
| 16 | ret void |
| 17 | } |