diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2011-05-02 17:20:56 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2011-05-02 17:20:56 +0000 |
commit | 340fa242130c2d8d74c83edca0952e771aebe0e6 (patch) | |
tree | dea1131fbdb6341aeebc382316a1a741262a982f /test/CodeGen/ms_struct-bitfield.c | |
parent | 0f0cdab31a4f71914b7f654501d69d96e9f378da (diff) |
More rule enforcement of zero bitfields for ms_struct.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130696 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ms_struct-bitfield.c')
-rw-r--r-- | test/CodeGen/ms_struct-bitfield.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/ms_struct-bitfield.c b/test/CodeGen/ms_struct-bitfield.c index e9bd1d3f31..a8f4c91a49 100644 --- a/test/CodeGen/ms_struct-bitfield.c +++ b/test/CodeGen/ms_struct-bitfield.c @@ -107,6 +107,13 @@ struct char :4; } ATTR t9; +struct +{ + char foo: 8; + long : 0; + char bar; +} ATTR t10; + static int arr1[(sizeof(t1) == 2) -1]; static int arr2[(sizeof(t2) == 2) -1]; static int arr3[(sizeof(t3) == 2) -1]; @@ -116,6 +123,7 @@ static int arr6[(sizeof(t6) == 1) -1]; static int arr7[(sizeof(t7) == 9) -1]; static int arr8[(sizeof(t8) == 0) -1]; static int arr9[(sizeof(t9) == 28) -1]; +static int arr10[(sizeof(t10) == 16) -1]; int main() { return 0; |