projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fix a crash in the LL parser where it failed to validate that the pointer operand...
[oota-llvm.git]
/
test
/
Assembler
/
getelementptr_invalid_ptr.ll
1
; RUN: not llvm-as < %s >/dev/null 2> %t
2
; RUN: FileCheck %s < %t
3
; Test the case of an invalid pointer type on a GEP
4
5
; CHECK: pointer type is not valid
6
7
define i32* @foo(i32 %a) {
8
%gep = getelementptr i32, i32 %a, i32 1
9
return i32* %gep
10
}
11