1 // REQUIRES: arm-registered-target
2 // RUN: %clang_cc1 -target-abi aapcs -triple armv7-apple-darwin10 %s -verify
3 // expected-no-diagnostics
13 static int arr1_offset
[(offsetof(struct t1
, bar
) == 1) ? 0 : -1];
14 static int arr1_sizeof
[(sizeof(struct t1
) == 4) ? 0 : -1];
22 static int arr2_offset
[(offsetof(struct t2
, bar
) == 2) ? 0 : -1];
23 static int arr2_sizeof
[(sizeof(struct t2
) == 4) ? 0 : -1];
31 static int arr3_offset
[(offsetof(struct t3
, bar
) == 4) ? 0 : -1];
32 static int arr3_sizeof
[(sizeof(struct t3
) == 8) ? 0 : -1];
40 static int arr4_offset
[(offsetof(struct t4
, bar
) == 4) ? 0 : -1];
41 static int arr4_sizeof
[(sizeof(struct t4
) == 8) ? 0 : -1];
49 static int arr5_offset
[(offsetof(struct t5
, bar
) == 8) ? 0 : -1];
50 static int arr5_sizeof
[(sizeof(struct t5
) == 16) ? 0 : -1];
59 static int arr6_offset
[(offsetof(struct t6
, bar2
) == 2) ? 0 : -1];
60 static int arr6_sizeof
[(sizeof(struct t6
) == 4) ? 0 : -1];
69 static int arr7_offset
[(offsetof(struct t7
, bar2
) == 3) ? 0 : -1];
70 static int arr7_sizeof
[(sizeof(struct t7
) == 4) ? 0 : -1];
79 static int arr8_offset
[(offsetof(struct t8
, bar2
) == 5) ? 0 : -1];
80 static int arr8_sizeof
[(sizeof(struct t8
) == 8) ? 0 : -1];
89 static int arr9_offset
[(offsetof(struct t9
, bar2
) == 5) ? 0 : -1];
90 static int arr9_sizeof
[(sizeof(struct t9
) == 8) ? 0 : -1];
99 static int arr10_offset
[(offsetof(struct t10
, bar2
) == 9) ? 0 : -1];
100 static int arr10_sizeof
[(sizeof(struct t10
) == 16) ? 0 : -1];
110 static int arr11_offset
[(offsetof(struct t11
, bar2
) == 9) ? 0 : -1];
111 static int arr11_sizeof
[(sizeof(struct t11
) == 16) ? 0 : -1];
121 static int arr12_offset
[(offsetof(struct t12
, bar
) == 8) ? 0 : -1];
122 static int arr12_sizeof
[(sizeof(struct t12
) == 16) ? 0 : -1];
130 static int arr13_offset
[(offsetof(struct t13
, bar
) == 4) ? 0 : -1];
131 static int arr13_sizeof
[(sizeof(struct t13
) == 8) ? 0 : -1];
145 static int arr14_bar1_offset
[(offsetof(struct t14
, bar1
) == 10) ? 0 : -1];
146 static int arr14_bar2_offset
[(offsetof(struct t14
, bar2
) == 12) ? 0 : -1];
147 static int arr14_sizeof
[(sizeof(struct t14
) == 16) ? 0 : -1];
158 static int arr15_offset
[(offsetof(struct t15
, bar
) == 4) ? 0 : -1];
159 static int arr15_sizeof
[(sizeof(struct t15
) == 8) ? 0 : -1];
166 static int arr16_offset
[(offsetof(struct t16
, bar
) == 0) ? 0 : -1];
167 static int arr16_sizeof
[(sizeof(struct t16
) == 4) ? 0 : -1];
177 static int arr17_offset
[(offsetof(struct t17
, bar
) == 4) ? 0 : -1];
178 static int arr17_sizeof
[(sizeof(struct t17
) == 8) ? 0 : -1];
186 static int arr18_sizeof
[(sizeof(struct t18
) == 0) ? 0 : -1];
196 static int arr19_offset
[(offsetof(struct t19
, bar
) == 8) ? 0 : -1];
197 static int arr19_sizeof
[(sizeof(struct t19
) == 12) ? 0 : -1];
206 static int arr20_offset
[(offsetof(struct t20
, bar
) == 4) ? 0 : -1];
207 static int arr20_sizeof
[(sizeof(struct t20
) == 8) ? 0 : -1];
229 static int arr21_bar1_offset
[(offsetof(struct t21
, bar1
) == 4) ? 0 : -1];
230 static int arr21_bar2_offset
[(offsetof(struct t21
, bar2
) == 8) ? 0 : -1];
231 static int arr21_bar3_offset
[(offsetof(struct t21
, bar3
) == 12) ? 0 : -1];
232 static int arr21_bar4_offset
[(offsetof(struct t21
, bar4
) == 28) ? 0 : -1];
233 static int arr21_sizeof
[(sizeof(struct t21
) == 40) ? 0 : -1];