Eric Christopher | 3883e66 | 2011-07-26 22:17:02 +0000 | [diff] [blame] | 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 | } |