Cleanup AST tests. The best would be if 'operators' in declarations was not included at all in the AST.

This commit is contained in:
Daniel Marjamäki 2019-05-04 07:31:35 +02:00
parent a439b5dcc6
commit 5e9b7a6749
1 changed files with 1 additions and 5 deletions

View File

@ -7105,11 +7105,7 @@ private:
// C++17: if (expr1; expr2)
ASSERT_EQUALS("ifx3=y;(", testAst("if (int x=3; y)"));
ASSERT_EQUALS("a( forx0=x;;(", testAst("struct c { void a() const { for (int x=0; x;); } };"));
// TODO: We dont correctly parse ref qualifiers
TODO_ASSERT_EQUALS("a( forx0=x;;(", "a({&", testAst("struct c { void a() & { for (int x=0; x;); } };"));
TODO_ASSERT_EQUALS("a( forx0=x;;(", "a({&&", testAst("struct c { void a() && { for (int x=0; x;); } };"));
ASSERT_EQUALS("forx0=x;;(", testAst("for (int x=0; x;);"));
}
void astexpr2() { // limit for large expressions