repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Bump version to 19.1.0-rc3
[llvm-project.git]
/
llvm
/
test
/
Assembler
/
getelementptr_invalid_ptr.ll
blob
0fe21cc621632c56ea29f3d89cdb43939a9c1510
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 ptr @foo(i32 %a) {
7
%gep = getelementptr i32, i32 %a, i32 1
8
return ptr %gep
9
}
10