summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/rfg26.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/rfg26.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.jason/rfg26.C10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/rfg26.C b/gcc/testsuite/g++.old-deja/g++.jason/rfg26.C
new file mode 100644
index 000000000..2b7e06085
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.jason/rfg26.C
@@ -0,0 +1,10 @@
+// { dg-do assemble }
+typedef void (FTYPE) ();
+
+FTYPE f; /* ok */
+
+void
+test_0 ()
+{
+ (FTYPE) f; /* { dg-error "" } casting to function type */
+}