In ms_struct structs, Establish a new alignment for a
non-bitfield following a bitfield if size of their types differ.
llvm-svn: 131032
diff --git a/clang/test/CodeGen/ms_struct-bitfield-3.c b/clang/test/CodeGen/ms_struct-bitfield-3.c
index 9678298..6798602 100644
--- a/clang/test/CodeGen/ms_struct-bitfield-3.c
+++ b/clang/test/CodeGen/ms_struct-bitfield-3.c
@@ -22,3 +22,18 @@
struct_0 test_struct_0 = { 18557917, 17, 3, 0, 80, 6487, 93 };
static int a[(size_struct_0 == sizeof (struct_0)) -1];
+
+struct _struct_1 {
+ int d;
+ unsigned char a;
+ unsigned short b:7;
+ char c;
+} ATTR;
+
+typedef struct _struct_1 struct_1;
+
+#define size_struct_1 12
+
+struct_1 test_struct_1 = { 18557917, 'a', 3, 'b' };
+
+static int a1[(size_struct_1 == sizeof (struct_1)) -1];