cast: new limited cast package inspired by Jan Engelhardt's libhx.
[ccan] / ccan / cast / test / compile_fail-cast_const3.c
1 #include <ccan/cast/cast.h>
2 #include <stdlib.h>
3
4 int main(int argc, char *argv[])
5 {
6         char ***uc;
7         const 
8 #ifdef FAIL
9                 int
10 #else
11                 char
12 #endif
13                 ***p = NULL;
14
15         uc = cast_const3(char ***, p);
16         return 0;
17 }