2013-04-09 02:33:51 +08:00
|
|
|
; RUN: not llvm-as < %s 2>&1 | FileCheck %s
|
|
|
|
; CHECK: invalid getelementptr indices
|
2004-11-07 07:08:26 +08:00
|
|
|
|
2008-05-16 08:16:32 +08:00
|
|
|
; This testcase is invalid because we are indexing into a pointer that is
|
|
|
|
; contained WITHIN a structure.
|
2002-11-06 08:52:21 +08:00
|
|
|
|
2008-03-16 15:55:46 +08:00
|
|
|
define void @test({i32, i32*} * %X) {
|
|
|
|
getelementptr {i32, i32*} * %X, i32 0, i32 1, i32 0
|
2002-11-06 08:52:21 +08:00
|
|
|
ret void
|
|
|
|
}
|