new testcase

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9817 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-11-09 00:23:05 +00:00
parent 102f1b68d4
commit 07909a317c
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;
}