mms-bitfields.c 352 B

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