Home | History | Annotate | Download | only in Sema
      1 // RUN: %clang_cc1 -triple i686-apple-darwin9 %s -fsyntax-only -verify
      2 // expected-no-diagnostics
      3 
      4 // Pragma pack handling with tag declarations
      5 
      6 struct X;
      7 
      8 #pragma pack(2)
      9 struct X { int x; };
     10 struct Y;
     11 #pragma pack()
     12 
     13 struct Y { int y; };
     14 
     15 extern int check[__alignof(struct X) == 2 ? 1 : -1];
     16 extern int check[__alignof(struct Y) == 4 ? 1 : -1];
     17 
     18