Sign in
swiftshader
/
SwiftShader
/
ef6152eb62663cb47a36c880adf9c245049a5d6d
/
.
/
third_party
/
llvm-7.0
/
llvm
/
test
/
Assembler
/
getelementptr_invalid_ptr.ll
blob: 892292729a1883baf04de1b61e1e6f3fd691646a [
file
] [
log
] [
blame
]
; RUN: not llvm-as < %s 2>&1 | FileCheck %s
; Test the case of an invalid pointer type on a GEP
; CHECK: base of getelementptr must be a pointer
define
i32
*
@foo
(
i32
%a
)
{
%gep
=
getelementptr
i32
,
i32
%a
,
i32
1
return
i32
*
%gep
}