netbsd/external/bsd/llvm/dist/clang/test/CodeGen/2003-11-04-EmptyStruct.c
2014-01-15 10:53:42 +01:00

7 lines
201 B
C

// 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) { }; }