summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/2008-07-22-packed-bitfield-access.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/2008-07-22-packed-bitfield-access.c')
-rw-r--r--clang/test/CodeGen/2008-07-22-packed-bitfield-access.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/CodeGen/2008-07-22-packed-bitfield-access.c b/clang/test/CodeGen/2008-07-22-packed-bitfield-access.c
new file mode 100644
index 0000000..76b942d
--- /dev/null
+++ b/clang/test/CodeGen/2008-07-22-packed-bitfield-access.c
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 %s -emit-llvm -o -
+
+int main () {
+ struct foo {
+ unsigned a:16;
+ unsigned b:32 __attribute__ ((packed));
+ } x;
+ x.b = 0x56789abcL;
+ return 0;
+}