X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fcast%2Ftest%2Fcompile_fail-cast_const2.c;fp=ccan%2Fcast%2Ftest%2Fcompile_fail-cast_const2.c;h=88df4b7a853168141dd3e07fb2bf045fe41c9874;hb=118ace351b789dfaca8866f84a8cd4b924941268;hp=0000000000000000000000000000000000000000;hpb=ce6eef4132acad78ae04a9e7c388ef932fb6411d;p=ccan diff --git a/ccan/cast/test/compile_fail-cast_const2.c b/ccan/cast/test/compile_fail-cast_const2.c new file mode 100644 index 00000000..88df4b7a --- /dev/null +++ b/ccan/cast/test/compile_fail-cast_const2.c @@ -0,0 +1,17 @@ +#include +#include + +int main(int argc, char *argv[]) +{ + char **uc; + const +#ifdef FAIL + int +#else + char +#endif + **p = NULL; + + uc = cast_const2(char **, p); + return 0; +}