blob: d238a7a10d0d2c6a32d52469731b6309473af7a8 [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
Andy Gibbs8e8fb3b2012-10-19 12:44:48 +00002// expected-no-diagnostics
Eli Friedman5f608ae2012-10-12 23:29:20 +00003
4// The -mms-bitfields commandline parameter should behave the same
5// as the ms_struct attribute.
6struct
7{
8 int a : 1;
9 short b : 1;
10} t;
11
12// MS pads out bitfields between different types.
13static int arr[(sizeof(t) == 8) ? 1 : -1];