the various ConstantExpr::get*Ty methods existed to work with issues around
[llvm/stm8.git] / test / FrontendC / 2003-11-08-PointerSubNotGetelementptr.c
blob58f9f82e15439316a41816a01b5384bffc42a41d
1 // RUN: %llvmgcc -xc %s -S -o - | grep getelementptr
3 char *test(char* C) {
4 return C-1; // Should turn into a GEP
7 int *test2(int* I) {
8 return I-1;