mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-05 02:07:56 +00:00
new testcase
llvm-svn: 9817
This commit is contained in:
parent
97e0aaaf51
commit
1fda2717e7
@ -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) { }; }
|
||||
|
||||
|
||||
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user