diff options
author | Chris Lattner <sabre@nondot.org> | 2003-11-09 00:23:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-11-09 00:23:05 +0000 |
commit | 07909a317cc28709c8359917f5377ecc1052e43d (patch) | |
tree | eca361a448fafcb81ea7c93eb5c178e915684a13 /test/CFrontend | |
parent | 102f1b68d468499a8175363b39b58ec712962aaa (diff) | |
download | external_llvm-07909a317cc28709c8359917f5377ecc1052e43d.zip external_llvm-07909a317cc28709c8359917f5377ecc1052e43d.tar.gz external_llvm-07909a317cc28709c8359917f5377ecc1052e43d.tar.bz2 |
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9817 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CFrontend')
-rw-r--r-- | test/CFrontend/2003-11-04-EmptyStruct.c | 1 | ||||
-rw-r--r-- | test/CFrontend/2003-11-08-PointerSubNotGetelementptr.c.tr | 9 |
2 files changed, 9 insertions, 1 deletions
diff --git a/test/CFrontend/2003-11-04-EmptyStruct.c b/test/CFrontend/2003-11-04-EmptyStruct.c index 48d089e..f8b8f5f 100644 --- a/test/CFrontend/2003-11-04-EmptyStruct.c +++ b/test/CFrontend/2003-11-04-EmptyStruct.c @@ -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) { }; } - diff --git a/test/CFrontend/2003-11-08-PointerSubNotGetelementptr.c.tr b/test/CFrontend/2003-11-08-PointerSubNotGetelementptr.c.tr new file mode 100644 index 0000000..443dfbd --- /dev/null +++ b/test/CFrontend/2003-11-08-PointerSubNotGetelementptr.c.tr @@ -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; +} |