diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/pragma-ms_struct.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/pragma-ms_struct.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pragma-ms_struct.c b/gcc/testsuite/gcc.dg/pragma-ms_struct.c new file mode 100644 index 00000000000..ebdb73c65a2 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pragma-ms_struct.c @@ -0,0 +1,22 @@ +/* APPLE LOCAL file mainline */ +/* Darwin pragma for __attribute__ ((ms_struct)). */ + +/* { dg-do compile { target *-*-darwin* } } */ +/* { dg-options "-Wall" } */ + +#pragma ms_struct on + +#pragma ms_struct off + +#pragma ms_struct reset + +#pragma ms_struct /* { dg-warning "malformed" } */ + +#pragma ms_struct on top of spaghetti /* { dg-warning "junk" } */ + +struct foo +{ + int a; + int b; + char c; +}; |