summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/casts3.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.law/casts3.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.law/casts3.C9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.law/casts3.C b/gcc/testsuite/g++.old-deja/g++.law/casts3.C
new file mode 100644
index 000000000..d8ee7daa8
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.law/casts3.C
@@ -0,0 +1,9 @@
+// { dg-do assemble }
+// { dg-options "-pedantic-errors" }
+// GROUPS passed casts
+// casts file
+// From: fjh@cs.mu.oz.au
+// Message-Id: <9310121939.29641@munta.cs.mu.OZ.AU>
+// Subject: should emit diagnostic for `int *p = (void *)0;'
+// Date: Wed, 13 Oct 93 5:39:35 EST
+ int *p = (void *)0;// { dg-error "" } .*