]> git.ozlabs.org Git - ccan/blob - ccan/cast/test/compile_fail-cast_static.c
tdb2: rename the tools to tdb2torture, tdb2tool and mktdb2
[ccan] / ccan / cast / test / compile_fail-cast_static.c
1 #include <ccan/cast/cast.h>
2 #include <stdlib.h>
3
4 int main(int argc, char *argv[])
5 {
6         char c;
7 #ifdef FAIL
8         char *
9 #else
10         long
11 #endif
12                 x = 0;
13
14         c = cast_static(char, x);
15         (void) c; /* Suppress unused-but-set-variable warning. */
16         return 0;
17 }