From 2ac652ab48e1922958dc708387e8bad4c277d1bf Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Fri, 12 Sep 2008 03:31:49 +0000 Subject: [PATCH] test program for cast errors [r21875] --- parsetest/shouldfail/casts.c | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 parsetest/shouldfail/casts.c 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; -- 2.20.1