1 #ifndef SKIP_VLA_IN_STRUCT
4 #include "compat-common.h"
5 #include "mixed-struct-defs.h"
6 #include "mixed-struct-init.h"
8 #define T(NAME, FIELDS, TYPE, FIELDINIT, FIELDTEST) \
9 extern void testva##NAME (int n, ...); \
12 testit##NAME (int n) \
14 struct S { FIELDS TYPE a[n]; } s; \
17 for (i = 0; i < n; ++i) \
18 s.a[i] = 12 + n - i; \
19 testva##NAME (n, s, n, s); \
22 #include "struct-by-value-22_x.c"
27 struct_by_value_22_x ()
32 #define T(NAME, FIELDS, TYPE, FIELDINIT, FIELDTEST) testit##NAME (n);
34 for (n
= 0; n
< 16; ++n
)
36 #include "struct-by-value-22_x.c"
39 for (; n
< 110; n
+= 13)
41 #include "struct-by-value-22_x.c"
53 #define S(NAME, FIELDS, FIELDINIT, FIELDTEST) \
54 T(c##NAME, FIELDS, char, FIELDINIT, FIELDTEST) \
55 T(s##NAME, FIELDS, short, FIELDINIT, FIELDTEST) \
56 T(u##NAME, FIELDS, unsigned, FIELDINIT, FIELDTEST) \
57 T(d##NAME, FIELDS, double, FIELDINIT, FIELDTEST)
58 S(E
, , do {} while (0), DEBUG_DOT
)
59 S(n
, int n
;, s
.n
= n
, if (s
.n
!= n
) DEBUG_CHECK
)
61 S(TYPE, TYPE s;, init##TYPE (&s.s, n), check##TYPE (s.s, n))