1 #include <ccan/tcon/tcon.h>
2 #include <ccan/build_assert/build_assert.h>
14 struct charp_and_int_container {
16 TCON(int tc1; char *tc2);
21 struct int_container icon;
22 struct charp_and_int_container cicon;
23 TCON_WRAP(struct container, int tc) iconw;
24 TCON_WRAP(struct container, int tc1; char *tc2) ciconw;
26 BUILD_ASSERT(tcon_sizeof(&icon, tc) == sizeof(int));
27 BUILD_ASSERT(tcon_sizeof(&cicon, tc1) == sizeof(int));
28 BUILD_ASSERT(tcon_sizeof(&cicon, tc2) == sizeof(char *));
30 BUILD_ASSERT(tcon_sizeof(&iconw, tc) == sizeof(int));
31 BUILD_ASSERT(tcon_sizeof(&ciconw, tc1) == sizeof(int));
32 BUILD_ASSERT(tcon_sizeof(&ciconw, tc2) == sizeof(char *));