aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/expr1.C
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2002-12-31 18:48:19 +0000
committerMark Mitchell <mark@codesourcery.com>2002-12-31 18:48:19 +0000
commitc647d70173b36b27110f553431b3c3b5435dae6c (patch)
tree4ec975132a8af09b538f4237c4c4eea7dbf01842 /gcc/testsuite/g++.dg/parse/expr1.C
parentc43e89025b5d128fb687c17b9ea517eb38d88023 (diff)
PR c++/9112
* parser.c (cp_parser_direct_declarator): Handle erroneous parenthesized declarators correctly. PR c++/9112 * g++.dg/parse/expr1.C: New test. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@60706 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/g++.dg/parse/expr1.C')
-rw-r--r--gcc/testsuite/g++.dg/parse/expr1.C8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/parse/expr1.C b/gcc/testsuite/g++.dg/parse/expr1.C
new file mode 100644
index 00000000000..2ef82185b89
--- /dev/null
+++ b/gcc/testsuite/g++.dg/parse/expr1.C
@@ -0,0 +1,8 @@
+struct A {
+ A (int, int);
+ void f ();
+};
+
+void f (int a) {
+ A (a, a).f ();
+}