xref: /minix3/external/bsd/llvm/dist/clang/test/Sema/mms-bitfields.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1 // RUN: %clang_cc1 -mms-bitfields -fsyntax-only -verify -triple x86_64-apple-darwin9 %s
2 // expected-no-diagnostics
3 
4 // The -mms-bitfields commandline parameter should behave the same
5 // as the ms_struct attribute.
6 struct
7 {
8    int a : 1;
9    short b : 1;
10 } t;
11 
12 // MS pads out bitfields between different types.
13 static int arr[(sizeof(t) == 8) ? 1 : -1];
14