Dan Gohman | f17a25c | 2007-07-18 16:29:46 +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-upgrade < %s | llvm-as | \ |
| 5 | ; RUN: opt -aa-eval -print-may-aliases -disable-output |& not grep May: |
| 6 | |
| 7 | %T = type { uint, [10 x ubyte] } |
| 8 | |
| 9 | %G = external global %T |
| 10 | |
| 11 | void %test() { |
| 12 | %D = getelementptr %T* %G, long 0, uint 0 |
| 13 | %E = getelementptr %T* %G, long 0, uint 1, long 5 |
| 14 | %F = getelementptr uint* getelementptr (%T* %G, long 0, uint 0), long 0 |
| 15 | %X = getelementptr [10 x ubyte]* getelementptr (%T* %G, long 0, uint 1), long 0, long 5 |
| 16 | |
| 17 | ret void |
| 18 | } |