Skip to content

Commit

Permalink
chore: add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amaanq committed Aug 4, 2023
1 parent 85f2d26 commit 39d4ad0
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions test/corpus/expressions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1330,3 +1330,45 @@ foo and_eq bar();
(call_expression
(identifier)
(argument_list)))))

================================================================================
Parenthesized Expressions that are not Fold Expressions
================================================================================

int main() {
int a = 0;
if ((a = a + 1)) {
(a += 1) %= 2;
}
}

--------------------------------------------------------------------------------

(translation_unit
(function_definition
(primitive_type)
(function_declarator
(identifier)
(parameter_list))
(compound_statement
(declaration
(primitive_type)
(init_declarator
(identifier)
(number_literal)))
(if_statement
(condition_clause
(parenthesized_expression
(assignment_expression
(identifier)
(binary_expression
(identifier)
(number_literal)))))
(compound_statement
(expression_statement
(assignment_expression
(parenthesized_expression
(assignment_expression
(identifier)
(number_literal)))
(number_literal))))))))

0 comments on commit 39d4ad0

Please sign in to comment.