Chris Lattner | eabb495 | 2002-08-30 23:22:15 +0000 | [diff] [blame^] | 1 | ; RUN: if as < %s | opt -sccp | dis | grep '%X' |
2 | ; RUN: then exit 1 | ||||
3 | ; RUN: else exit 0 | ||||
4 | ; RUN: fi | ||||
5 | |||||
6 | %G = uninitialized global [40x int] | ||||
7 | |||||
8 | implementation | ||||
9 | |||||
10 | int* %test() { | ||||
11 | %X = getelementptr [40x int]* %G, uint 0, uint 0 | ||||
12 | ret int* %X | ||||
13 | } |