aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/CFrontend/2008-01-24-StructAlignAndBitFields.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CFrontend/2008-01-24-StructAlignAndBitFields.c b/test/CFrontend/2008-01-24-StructAlignAndBitFields.c
new file mode 100644
index 0000000000..84afa3bd58
--- /dev/null
+++ b/test/CFrontend/2008-01-24-StructAlignAndBitFields.c
@@ -0,0 +1,6 @@
+// RUN: %llvmgcc %s -S -o -
+
+// This struct is not 4 byte aligned becaues bit-field
+// type does not influence struct alignment.
+struct U { char a; short b; int c:25; char d; } u;
+