☰
Debian Codegraph
@
1:22.1.8-2
1:22.1.8-1
1:22.1.7-1
/
/
clang
/
test
/
CodeGen
/
2003-11-08-PointerSubNotGetelementptr.c
☽
☼
clang/test/CodeGen/2003-11-08-PointerSubNotGetelementptr.c
code
plain
raw
APACHE-2-LLVM-EXCEPTIONS
2003-2017 University of Illinois at Urbana-Champaign.
debian/copyright
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
}