commit | 96781fa8f62819a9bc79fa9a5f12119c4aef9baa | [log] [tgz] |
---|---|---|
author | Devang Patel <dpatel@apple.com> | Tue May 27 22:45:40 2008 +0000 |
committer | Devang Patel <dpatel@apple.com> | Tue May 27 22:45:40 2008 +0000 |
tree | a46a0e8bc45a1f8903755f0ed57e84b57bdc98d1 | |
parent | a3ed684d3a9b891b1b08a65d14ce07f3a8e0b933 [diff] [blame] |
Check first member alignment and uses packed struct if required. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51619 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/struct.c b/test/CodeGen/struct.c index 4c88c25..f17a7af 100644 --- a/test/CodeGen/struct.c +++ b/test/CodeGen/struct.c
@@ -160,3 +160,6 @@ a13 b = __builtin_va_arg(l, a13); return b.b; } + +/* Attribute packed */ +struct __attribute__((packed)) S2839 { double a[19]; signed char b; } s2839[5];