blob: d1e516953ac38d58555e627c71659b87ed6e8799 [file] [log] [blame]
Tanya Lattner2393a242004-11-06 23:08:26 +00001; RUN: not llvm-as -f %s -o /dev/null
2
Chris Lattner5051e9c2002-11-06 00:52:21 +00003; This testcase is invalid because we are indexing into a pointer that is
4; contained WITHIN a structure.
5
6void %test({int, int*} * %X) {
Reid Spencere5d4efa2006-11-23 15:14:52 +00007 getelementptr {int, int*} * %X, long 0, uint 1, long 0
Chris Lattner5051e9c2002-11-06 00:52:21 +00008 ret void
9}