forked from OSchip/llvm-project
parent
123ba49839
commit
3faf03a00f
|
@ -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