1 // RUN: %clang_cc1 -triple i686-apple-darwin9 %s -fsyntax-only -verify
2 // expected-no-diagnostics
4 // Stack: [], Alignment: 8
7 // Stack: [8], Alignment: 1
10 // Stack: [8, 1], Alignment: 4
12 // Note that this differs from gcc; pack() in gcc appears to pop the
13 // top stack entry and resets the current alignment. This is both
14 // inconsistent with MSVC, and the gcc documentation. In other cases,
15 // for example changing this to pack(8), I don't even understand what gcc
19 // Stack: [8, 1], Alignment: 8
22 // Stack: [8], Alignment: 1
27 int a
[sizeof(struct s0
) == 3 ? 1 : -1];
30 // Stack: [], Alignment: 8
35 int b
[sizeof(struct s1
) == 4 ? 1 : -1];