1 /* SPDX-License-Identifier: LGPL-2.1+ */
7 #include <sys/socket.h>
9 #define __STDC_WANT_IEC_60559_TYPES_EXT__
12 #include "time-util.h"
14 /* Print information about various types. Useful when diagnosing
15 * gcc diagnostics on an unfamiliar architecture. */
17 DISABLE_WARNING_TYPE_LIMITS
;
20 printf("%s → %zu bits%s, %zu byte alignment\n", STRINGIFY(t), \
22 strstr(STRINGIFY(t), "signed") ? "" : \
23 (t)-1 < (t)0 ? ", signed" : ", unsigned", \
31 big_enum_value
= UINT64_C(1),
35 big_enum2_pos
= UINT64_C(1),
36 big_enum2_neg
= UINT64_C(-1),
46 info(long long unsigned);
47 info(__syscall_ulong_t
);
48 info(__syscall_slong_t
);
77 assert_cc(sizeof(enum BigEnum2
) == 8);
78 printf("big_enum2_pos → %zu\n", sizeof(big_enum2_pos
));
79 printf("big_enum2_neg → %zu\n", sizeof(big_enum2_neg
));