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