1 // RUN: %clang_cc1 -triple i386-apple-darwin9 -fsyntax-only -verify %s
2 // expected-no-diagnostics
6 #pragma options align=mac68k
8 typedef float __attribute__((vector_size (8))) v2f_t
;
9 typedef float __attribute__((vector_size (16))) v4f_t
;
11 extern int a0_0
[__alignof(v2f_t
) == 8 ? 1 : -1];
12 extern int a0_1
[__alignof(v4f_t
) == 16 ? 1 : -1];
18 extern int a1_0
[offsetof(struct s1
, f0
) == 0 ? 1 : -1];
19 extern int a1_1
[offsetof(struct s1
, f1
) == 2 ? 1 : -1];
20 extern int a1_2
[sizeof(struct s1
) == 6 ? 1 : -1];
21 extern int a1_3
[__alignof(struct s1
) == 2 ? 1 : -1];
27 extern int a2_0
[offsetof(struct s2
, f0
) == 0 ? 1 : -1];
28 extern int a2_1
[offsetof(struct s2
, f1
) == 2 ? 1 : -1];
29 extern int a2_2
[sizeof(struct s2
) == 10 ? 1 : -1];
30 extern int a2_3
[__alignof(struct s2
) == 2 ? 1 : -1];
36 extern int a3_0
[offsetof(struct s3
, f0
) == 0 ? 1 : -1];
37 extern int a3_1
[offsetof(struct s3
, f1
) == 2 ? 1 : -1];
38 extern int a3_2
[sizeof(struct s3
) == 18 ? 1 : -1];
39 extern int a3_3
[__alignof(struct s3
) == 2 ? 1 : -1];
45 extern int a4_0
[offsetof(struct s4
, f0
) == 0 ? 1 : -1];
46 extern int a4_1
[offsetof(struct s4
, f1
) == 1 ? 1 : -1];
47 extern int a4_2
[sizeof(struct s4
) == 2 ? 1 : -1];
48 extern int a4_3
[__alignof(struct s4
) == 2 ? 1 : -1];
54 extern int a5_0
[sizeof(struct s5
) == 4 ? 1 : -1];
55 extern int a5_1
[__alignof(struct s5
) == 2 ? 1 : -1];
61 extern int a6_0
[sizeof(struct s6
) == 0 ? 1 : -1];
62 extern int a6_1
[__alignof(struct s6
) == 2 ? 1 : -1];
68 extern int a7_0
[sizeof(struct s7
) == 2 ? 1 : -1];
69 extern int a7_1
[__alignof(struct s7
) == 2 ? 1 : -1];
75 extern int a8_0
[sizeof(struct s8
) == 2 ? 1 : -1];
76 extern int a8_1
[__alignof(struct s8
) == 2 ? 1 : -1];
83 extern int a9_0
[sizeof(struct s9
) == 6 ? 1 : -1];
84 extern int a9_1
[__alignof(struct s9
) == 2 ? 1 : -1];
89 extern int a10_0
[sizeof(struct s10
) == 2 ? 1 : -1];
90 extern int a10_1
[__alignof(struct s10
) == 2 ? 1 : -1];
96 extern int a11_0
[offsetof(struct s11
, f0
) == 0 ? 1 : -1];
97 extern int a11_1
[offsetof(struct s11
, f1
) == 2 ? 1 : -1];
98 extern int a11_2
[sizeof(struct s11
) == 10 ? 1 : -1];
99 extern int a11_3
[__alignof(struct s11
) == 2 ? 1 : -1];
101 #pragma options align=reset
104 #pragma options align=mac68k
109 #pragma options align=reset
110 extern int a12
[sizeof(struct s12
) == 6 ? 1 : -1];