Tanya Lattner | 2393a24 | 2004-11-06 23:08:26 +0000 | [diff] [blame^] | 1 | ; RUN: not llvm-as -f %s -o /dev/null |
2 | |||||
Chris Lattner | 5051e9c | 2002-11-06 00:52:21 +0000 | [diff] [blame] | 3 | ; This testcase is invalid because we are indexing into a pointer that is |
4 | ; contained WITHIN a structure. | ||||
5 | |||||
6 | void %test({int, int*} * %X) { | ||||
7 | getelementptr {int, int*} * %X, long 0, ubyte 1, long 0 | ||||
8 | ret void | ||||
9 | } |