1 // RUN: %clang_cc1 -fsyntax-only -fms-extensions -verify -triple x86_64-apple-darwin9 %s
7 #pragma ms_struct reset
9 #pragma ms_struct // expected-warning {{incorrect use of '#pragma ms_struct on|off' - ignored}}
11 #pragma ms_struct on top of spaghetti // expected-warning {{extra tokens at end of '#pragma ms_struct' - ignored}}
22 unsigned long bf_1
: 12;
24 unsigned long bf_2
: 12;
25 } __attribute__((__ms_struct__
)) t1
;
28 double __attribute__((ms_struct
)) d
; // expected-warning {{'ms_struct' attribute only applies to structs, unions, and classes}}
29 unsigned long bf_1
: 12;
31 unsigned long bf_2
: 12;
32 } __attribute__((ms_struct
)) t2
;
39 } __attribute__((ms_struct
)) e1
; // expected-warning {{'ms_struct' attribute only applies to}}
53 unsigned short fInited
: 1;
59 static int arr
[sizeof(PackOddity
) == 40 ? 1 : -1];
61 struct __declspec(ms_struct
) bad
{ // expected-warning {{__declspec attribute 'ms_struct' is not supported}}