From: Michael Beck Date: Fri, 12 Sep 2008 03:31:49 +0000 (+0000) Subject: test program for cast errors X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=2ac652ab48e1922958dc708387e8bad4c277d1bf;p=cparser test program for cast errors [r21875] --- diff --git a/parsetest/shouldfail/casts.c b/parsetest/shouldfail/casts.c new file mode 100644 index 0000000..a786aa1 --- /dev/null +++ b/parsetest/shouldfail/casts.c @@ -0,0 +1,5 @@ +char *p1 = (char *)0.0; +char *p2 = (char *)4.5; + +struct S { int a; } x; +struct T { int b; } y = (struct T)x;