blob: 9289b9029a1f34711ac6b06a57176ec818729ec7 [file] [log] [blame]
Eli Friedman5f608ae2012-10-12 23:29:20 +00001// RUN: %clang_cc1 -mms-bitfields -fsyntax-only -verify -triple x86_64-apple-darwin9 %s
2
3// The -mms-bitfields commandline parameter should behave the same
4// as the ms_struct attribute.
5struct
6{
7 int a : 1;
8 short b : 1;
9} t;
10
11// MS pads out bitfields between different types.
12static int arr[(sizeof(t) == 8) ? 1 : -1];