* g++.dg/parse/parens1.C: New test.

From-SVN: r60746
This commit is contained in:
Nathanael Nerode 2003-01-01 15:03:00 +00:00
parent c818e8b86f
commit 64505efc35
2 changed files with 19 additions and 0 deletions

View File

@ -1,5 +1,6 @@
2003-01-01 Nathanael Nerode <neroden@gcc.gnu.org>
* g++.dg/parse/parens1.C: New test.
* g++.dg/parse/parens2.C: Removed, turned out to duplicate
angle-bracket1.C.

View File

@ -0,0 +1,18 @@
/* PR c++/8237 */
/* { dg-do compile } */
class A {
public:
A() { }
};
class B {
public:
B(A a) { }
void form() { }
};
int main() {
// This used to give a parse error.
B(A()).form();
}