1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-24 15:17:06 +03:00
samba-mirror/lib/ccan/tcon/test/compile_ok-void.c
Rusty Russell 361f3ea9ee lib/ccan: import failtest and required ccan modules for TDB2 unit tests.
New modules: failtest, list, time, read_write_all and tlist.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-03-07 13:16:16 +11:00

22 lines
379 B
C

#include <ccan/tcon/tcon.h>
#include <stdlib.h>
struct container {
void *p;
};
struct void_container {
struct container raw;
TCON(void *canary);
};
int main(int argc, char *argv[])
{
struct void_container vcon;
tcon_check(&vcon, canary, NULL)->raw.p = NULL;
tcon_check(&vcon, canary, argv[0])->raw.p = NULL;
tcon_check(&vcon, canary, main)->raw.p = NULL;
return 0;
}