aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/CFrontend/2003-08-29-StructLayoutBug.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CFrontend/2003-08-29-StructLayoutBug.c b/test/CFrontend/2003-08-29-StructLayoutBug.c
new file mode 100644
index 0000000000..7572d2737c
--- /dev/null
+++ b/test/CFrontend/2003-08-29-StructLayoutBug.c
@@ -0,0 +1,8 @@
+struct foo {
+ unsigned int I:1;
+ unsigned char J[1];
+ unsigned int K:1;
+ };
+
+void test(struct foo *X) {}
+