1 // RUN: %clang_cc1 -triple i686-apple-darwin9 %s -fsyntax-only -verify
3 // Check that #pragma pack and #pragma options share the same stack.
10 extern int a
[sizeof(struct s0
) == 5 ? 1 : -1];
12 #pragma options align=natural
17 extern int a
[sizeof(struct s1
) == 8 ? 1 : -1];
19 #pragma options align=reset
20 #pragma options align=native
25 extern int a
[sizeof(struct s1_1
) == 8 ? 1 : -1];
32 extern int a
[sizeof(struct s2
) == 5 ? 1 : -1];
39 extern int a
[sizeof(struct s3
) == 8 ? 1 : -1];
42 #pragma options align=power
48 #pragma options align=reset
49 extern int a
[sizeof(struct s4
) == 8 ? 1 : -1];
51 /* expected-warning {{#pragma options align=reset failed: stack empty}} */ #pragma options align=reset
52 /* expected-warning {{#pragma pack(pop, ...) failed: stack empty}} */ #pragma pack(pop)