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