cast: test/compile_fail-cast_static.c should fail without COMPOUND_LITERALS.
commitbe25ab9c8df2f96ee10929fdfee582935b2f0e06
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 27 Mar 2012 05:10:45 +0000 (27 15:40 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 29 Mar 2012 04:44:30 +0000 (29 15:14 +1030)
treecbd376ec8d2cc9bb25d2bf8057829fdf27ae7f1f
parent3acce707a32a28c309133583b8cd1a554f19a8b3
cast: test/compile_fail-cast_static.c should fail without COMPOUND_LITERALS.

It still gave a warning on gcc, because casting a char to a char* gives a warning.  Not so on sun CC.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit 6569a707d169a629e25e10710c760c8dc84525c7)
lib/ccan/cast/test/compile_fail-cast_static.c