new testcase

llvm-svn: 9817
This commit is contained in:
Chris Lattner 2003-11-09 00:23:05 +00:00
parent 97e0aaaf51
commit 1fda2717e7
2 changed files with 9 additions and 1 deletions

View File

@ -2,4 +2,3 @@ typedef struct { } rwlock_t;
struct fs_struct { rwlock_t lock; int umask; };
void __copy_fs_struct(struct fs_struct *fs) { fs->lock = (rwlock_t) { }; }

View File

@ -0,0 +1,9 @@
// RUN: %llvmgcc -xc %s -c -o - | llvm-dis | grep getelementptr
char *test(char* C) {
return C-1; // Should turn into a GEP
}
int *test2(int* I) {
return I-1;
}