aboutsummaryrefslogtreecommitdiffstats
path: root/test/FrontendC/2003-11-04-EmptyStruct.c
blob: b4f37befffa0b9908c84d3f0ffc5760c28f05834 (plain)
1
2
3
4
5
6
// RUN: %llvmgcc -S %s -o - | llvm-as -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) { }; }