1 /* This checks alignment of basic types. */
2
3 #include "defines.h"
4 #include "macros.h"
5
6
7 int
main(void)8 main (void)
9 {
10 /* Integral types. */
11 run_signed_tests2(check_align, char, TYPE_ALIGN_CHAR);
12 run_signed_tests2(check_align, short, TYPE_ALIGN_SHORT);
13 run_signed_tests2(check_align, int, TYPE_ALIGN_INT);
14 run_signed_tests2(check_align, long, TYPE_ALIGN_LONG);
15 run_signed_tests2(check_align, long long, TYPE_ALIGN_LONG_LONG);
16 check_align(enumtype, TYPE_ALIGN_ENUM);
17
18 /* Floating point types. */
19 check_align(float, TYPE_ALIGN_FLOAT);
20 check_align(double, TYPE_ALIGN_DOUBLE);
21 #ifdef CHECK_LONG_DOUBLE
22 check_align(long double, TYPE_ALIGN_LONG_DOUBLE);
23 #endif
24 #ifdef CHECK_FLOAT128
25 check_align(__float128, TYPE_ALIGN_FLOAT128);
26 #endif
27
28 /* Pointer types. */
29 check_align(void *, TYPE_ALIGN_POINTER);
30 check_align(void (*)(), TYPE_ALIGN_POINTER);
31
32 return 0;
33 }
34