2 #include "compat-common.h"
3 #include "mixed-struct-defs.h"
4 #include "mixed-struct-init.h"
6 #define T(NAME, FIELDS, TYPE, FIELDINIT, FIELDTEST) \
7 extern void testva##NAME (int n, ...); \
10 testit##NAME (int n) \
12 struct S { FIELDS TYPE a[n]; } s; \
15 for (i = 0; i < n; ++i) \
16 s.a[i] = 12 + n - i; \
17 testva##NAME (n, s, n, s); \
20 #include "struct-by-value-22_x.c"
25 struct_by_value_22_x ()
30 #define T(NAME, FIELDS, TYPE, FIELDINIT, FIELDTEST) testit##NAME (n);
32 for (n
= 0; n
< 16; ++n
)
34 #include "struct-by-value-22_x.c"
37 for (; n
< 110; n
+= 13)
39 #include "struct-by-value-22_x.c"
51 #define S(NAME, FIELDS, FIELDINIT, FIELDTEST) \
52 T(c##NAME, FIELDS, char, FIELDINIT, FIELDTEST) \
53 T(s##NAME, FIELDS, short, FIELDINIT, FIELDTEST) \
54 T(u##NAME, FIELDS, unsigned, FIELDINIT, FIELDTEST) \
55 T(d##NAME, FIELDS, double, FIELDINIT, FIELDTEST)
56 S(E
, , do {} while (0), DEBUG_DOT
)
57 S(n
, int n
;, s
.n
= n
, if (s
.n
!= n
) DEBUG_CHECK
)
59 S(TYPE, TYPE s;, init##TYPE (&s.s, n), check##TYPE (s.s, n))