New test.
authorDevang Patel <dpatel@apple.com>
Thu, 24 Jan 2008 23:55:34 +0000 (23:55 +0000)
committerDevang Patel <dpatel@apple.com>
Thu, 24 Jan 2008 23:55:34 +0000 (23:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46333 91177308-0d34-0410-b5e6-96231b3b80d8

test/CFrontend/2008-01-24-StructAlignAndBitFields.c [new file with mode: 0644]

diff --git a/test/CFrontend/2008-01-24-StructAlignAndBitFields.c b/test/CFrontend/2008-01-24-StructAlignAndBitFields.c
new file mode 100644 (file)
index 0000000..84afa3b
--- /dev/null
@@ -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;
+