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