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
6struct X;
7
8#pragma pack(2)
9struct X { int x; };
10struct Y;
11#pragma pack()
12
13struct Y { int y; };
14
15extern int check[__alignof(struct X) == 2 ? 1 : -1];
16extern int check[__alignof(struct Y) == 4 ? 1 : -1];
17
18