diff options
Diffstat (limited to 'test/CodeGen/PR4611-bitfield-layout.c')
| -rw-r--r-- | test/CodeGen/PR4611-bitfield-layout.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/PR4611-bitfield-layout.c b/test/CodeGen/PR4611-bitfield-layout.c new file mode 100644 index 000000000000..83ce4ffdbd6d --- /dev/null +++ b/test/CodeGen/PR4611-bitfield-layout.c @@ -0,0 +1,6 @@ +// RUN: clang-cc -triple i386-unknown-unknown %s -emit-llvm -o %t && +// RUN: grep "struct.object_entry = type { i8, \[2 x i8\], i8 }" %t + +struct object_entry { + unsigned int type:3, pack_id:16, depth:13; +} entries; |
