aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/rfg1.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/rfg1.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.jason/rfg1.C13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/rfg1.C b/gcc/testsuite/g++.old-deja/g++.jason/rfg1.C
new file mode 100644
index 00000000000..a9b581f2751
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.jason/rfg1.C
@@ -0,0 +1,13 @@
+// Bug: g++ parses the declaration of i as a functional cast.
+// Build don't link:
+
+void take_int (int arg) { }
+
+void
+test ()
+{
+ int (i);
+
+ i = 0;
+ take_int (i);
+}