Duncan Sands | b32d19d | 2010-11-25 21:24:35 +0000 | [diff] [blame] | 1 | // RUN: %llvmgcc -xc %s -S -o - | grep getelementptr |
Chris Lattner | 3faf03a | 2003-11-09 00:23:05 +0000 | [diff] [blame] | 2 | |
3 | char *test(char* C) { | ||||
4 | return C-1; // Should turn into a GEP | ||||
5 | } | ||||
6 | |||||
7 | int *test2(int* I) { | ||||
8 | return I-1; | ||||
9 | } |