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