diff options
Diffstat (limited to 'clang/test/CodeGen/2003-11-04-EmptyStruct.c')
-rw-r--r-- | clang/test/CodeGen/2003-11-04-EmptyStruct.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/CodeGen/2003-11-04-EmptyStruct.c b/clang/test/CodeGen/2003-11-04-EmptyStruct.c new file mode 100644 index 0000000..e771b88 --- /dev/null +++ b/clang/test/CodeGen/2003-11-04-EmptyStruct.c @@ -0,0 +1,6 @@ +// RUN: %clang_cc1 -emit-llvm %s -o /dev/null + +typedef struct { } rwlock_t; +struct fs_struct { rwlock_t lock; int umask; }; +void __copy_fs_struct(struct fs_struct *fs) { fs->lock = (rwlock_t) { }; } + |