aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2007-04-12 00:32:43 +0000
committerDevang Patel <dpatel@apple.com>2007-04-12 00:32:43 +0000
commitcfa71e026dc09ac0c7207796a3a47fd5efba236a (patch)
tree8ec52989aa5fa04e74c255bc5685da892cbe3251
parentc89108437229e9c50883f907a44fb7cea58de29f (diff)
New test case for PR 1321.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35934 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CFrontend/2007-04-11-PR1321.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CFrontend/2007-04-11-PR1321.c b/test/CFrontend/2007-04-11-PR1321.c
new file mode 100644
index 0000000000..f391329a0f
--- /dev/null
+++ b/test/CFrontend/2007-04-11-PR1321.c
@@ -0,0 +1,12 @@
+// RUN: %llvmgcc %s -S -o /dev/null
+
+struct X {
+ unsigned int e0 : 17;
+ unsigned int e1 : 17;
+ unsigned int e2 : 17;
+ unsigned int e3 : 17;
+ unsigned int e4 : 17;
+ unsigned int e5 : 17;
+ unsigned int e6 : 17;
+ unsigned int e7 : 17;
+} __attribute__((packed)) x;