pragma-pack-6.c revision 2016c8c4a2ebf528c54c42045bc6a30ae590147c
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