test program for cast errors
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Fri, 12 Sep 2008 03:31:49 +0000 (03:31 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Fri, 12 Sep 2008 03:31:49 +0000 (03:31 +0000)
[r21875]

parsetest/shouldfail/casts.c [new file with mode: 0644]

diff --git a/parsetest/shouldfail/casts.c b/parsetest/shouldfail/casts.c
new file mode 100644 (file)
index 0000000..a786aa1
--- /dev/null
@@ -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;