1 #include <ccan/tcon/tcon.h>
2 #include <ccan/tap/tap.h>
5 typedef TCON_WRAP(int, char *canary) canaried_int;
7 int main(int argc, char *argv[])
9 canaried_int ci = TCON_WRAP_INIT(0);
13 ok1(*tcon_unwrap(&ci) == 0);
14 *tcon_unwrap(&ci) = 17;
15 ok1(*tcon_unwrap(&ci) == 17);