llvm-6502/test/Verifier/2002-11-05-GetelementptrPointers.ll

10 lines
247 B
LLVM
Raw Normal View History

; RUN: not llvm-as -f %s -o /dev/null
; This testcase is invalid because we are indexing into a pointer that is
; contained WITHIN a structure.
void %test({int, int*} * %X) {
getelementptr {int, int*} * %X, long 0, ubyte 1, long 0
ret void
}