1 /* Darwin pragma for __attribute__ ((ms_struct)).  */
2 
3 /* { dg-do compile { target *-*-darwin* } } */
4 /* { dg-options "-Wall" } */
5 
6 #pragma ms_struct on
7 
8 #pragma ms_struct off
9 
10 #pragma ms_struct reset
11 
12 #pragma ms_struct /* { dg-warning "malformed" } */
13 
14 #pragma ms_struct on top of spaghetti /* { dg-warning "junk" } */
15 
16 struct foo
17 {
18   int a;
19   int b;
20   char c;
21 };
22