tdb2: fix msync() arg
[ccan] / ccan / cast / test / compile_fail-cast_static-2.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         long
9 #else
10         char
11 #endif
12                 *p = 0;
13
14         c = cast_static(char *, p);
15         return 0;
16 }
17
18 #ifdef FAIL
19 #if !HAVE_COMPOUND_LITERALS
20 #error "Unfortunately we don't fail if cast_static is a noop"
21 #endif
22 #endif