| // RUN: %clang_cc1 -fsyntax-only -fms-extensions -verify -triple x86_64-apple-darwin9 %s |
| #pragma ms_struct // expected-warning {{incorrect use of '#pragma ms_struct on|off' - ignored}} |
| #pragma ms_struct on top of spaghetti // expected-warning {{extra tokens at end of '#pragma ms_struct' - ignored}} |
| } __attribute__((__ms_struct__)) t1; |
| double __attribute__((ms_struct)) d; // expected-warning {{'ms_struct' attribute only applies to structs, unions, and classes}} |
| } __attribute__((ms_struct)) t2; |
| } __attribute__((ms_struct)) e1; // expected-warning {{'ms_struct' attribute only applies to}} |
| unsigned short fInited : 1; |
| static int arr[sizeof(PackOddity) == 40 ? 1 : -1]; |
| struct __declspec(ms_struct) bad { // expected-warning {{__declspec attribute 'ms_struct' is not supported}} |