repo.or.cz
/
llvm-core.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[InstCombine] Signed saturation tests. NFC
[llvm-core.git]
/
test
/
Assembler
/
getelementptr_invalid_ptr.ll
blob
892292729a1883baf04de1b61e1e6f3fd691646a
1
; RUN: not llvm-as < %s 2>&1 | FileCheck %s
2
; Test the case of an invalid pointer type on a GEP
3
4
; CHECK: base of getelementptr must be a pointer
5
6
define i32* @foo(i32 %a) {
7
%gep = getelementptr i32, i32 %a, i32 1
8
return i32* %gep
9
}
10