summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/2007-04-05-PackedBitFields-2.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/2007-04-05-PackedBitFields-2.c')
-rw-r--r--clang/test/CodeGen/2007-04-05-PackedBitFields-2.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/clang/test/CodeGen/2007-04-05-PackedBitFields-2.c b/clang/test/CodeGen/2007-04-05-PackedBitFields-2.c
new file mode 100644
index 0000000..41e6b7d
--- /dev/null
+++ b/clang/test/CodeGen/2007-04-05-PackedBitFields-2.c
@@ -0,0 +1,16 @@
+// RUN: %clang_cc1 %s -emit-llvm -o -
+
+# define pck __attribute__((packed))
+
+
+struct pck F {
+ unsigned long long i : 12,
+ j : 23,
+ k : 27,
+ l;
+};
+struct F f1;
+
+void foo() {
+ f1.l = 5;
+}