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
[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git]
/
clang
/
test
/
CodeGen
/
2003-11-08-PointerSubNotGetelementptr.c
blob
9a9c642f11a5063633c1d49d137506f8968a2621
1
// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
2
3
char
*
test
(
char
*
C
) {
4
// CHECK: getelementptr
5
return
C
-
1
;
// Should turn into a GEP
6
}
7
8
int
*
test2
(
int
*
I
) {
9
return
I
-
1
;
10
}