s3: smbclient: Allinfo leaves the file handle open.
[Samba.git] / lib / ccan / tcon / test / compile_fail-tcon_cast.c
blobf80ef42c091dde6ff817ba8dc6ea10ce9c9b3fb0
1 #include <ccan/tcon/tcon.h>
2 #include <stdlib.h>
4 struct container {
5 void *p;
6 };
8 struct int_and_charp_container {
9 struct container raw;
10 TCON(int *tc1; char *tc2);
13 int main(int argc, char *argv[])
15 struct int_and_charp_container icon;
16 #ifdef FAIL
17 #if !HAVE_TYPEOF
18 #error We cannot detect type problems without HAVE_TYPEOF
19 #endif
20 char *
21 #else
22 int *
23 #endif
26 icon.raw.p = NULL;
27 x = tcon_cast(&icon, tc1, icon.raw.p);
28 return 0;