Home | History | Annotate | Download | only in Parser
      1 // RUN: %clang_cc1 -triple i386-apple-darwin9 -fsyntax-only -verify %s
      2 
      3 /* expected-warning {{expected 'align' following '#pragma options'}} */ #pragma options
      4 /* expected-warning {{expected '=' following '#pragma options align'}} */ #pragma options align
      5 /* expected-warning {{expected identifier in '#pragma options'}} */ #pragma options align =
      6 /* expected-warning {{invalid alignment option in '#pragma options align'}} */ #pragma options align = foo
      7 /* expected-warning {{extra tokens at end of '#pragma options'}} */ #pragma options align = reset foo
      8 
      9 #pragma options align=natural
     10 #pragma options align=reset
     11 #pragma options align=mac68k
     12 #pragma options align=power
     13 
     14 /* expected-warning {{expected '=' following '#pragma align'}} */ #pragma align
     15 /* expected-warning {{expected identifier in '#pragma align'}} */ #pragma align =
     16 /* expected-warning {{invalid alignment option in '#pragma align'}} */ #pragma align = foo
     17 /* expected-warning {{extra tokens at end of '#pragma align'}} */ #pragma align = reset foo
     18 
     19 #pragma align=natural
     20 #pragma align=reset
     21 #pragma align=mac68k
     22 #pragma align=power
     23 
     24 // PR13580
     25 struct S
     26 {
     27   char a[3];
     28 #pragma align=packed
     29   struct T
     30   {
     31     char b;
     32     int c;
     33   } d;
     34 };
     35