repo.or.cz
/
llvm
/
stm8.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
the various ConstantExpr::get*Ty methods existed to work with issues around
[llvm/stm8.git]
/
test
/
FrontendC
/
2003-11-08-PointerSubNotGetelementptr.c
blob
58f9f82e15439316a41816a01b5384bffc42a41d
1
// RUN: %llvmgcc -xc %s -S -o - | grep getelementptr
2
3
char
*
test
(
char
*
C
) {
4
return
C
-
1
;
// Should turn into a GEP
5
}
6
7
int
*
test2
(
int
*
I
) {
8
return
I
-
1
;
9
}