another expr/decl ambiguity test

From-SVN: r21828
This commit is contained in:
Brendan Kehoe 1998-08-18 11:32:36 -04:00
parent 074900555d
commit e368d5b332

View File

@ -0,0 +1,13 @@
// Build don't link:
// this is marked as an expected error because it evidences an
// ambiguity in the grammar between expressions and declarations.
// when the parser's been cleaned up or rewritten, the error
// marker can go away, since it'll no longer occur.
class A { };
main() {
A a = a;
A b(b); // ERROR -
}