added test cases
This commit is contained in:
48
test/corpus/positive/ForStatement4.txt
Normal file
48
test/corpus/positive/ForStatement4.txt
Normal file
@@ -0,0 +1,48 @@
|
||||
====================
|
||||
ForStatement4
|
||||
====================
|
||||
|
||||
function main() -> int {
|
||||
for (;;)
|
||||
;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
--------------------
|
||||
|
||||
(source_file
|
||||
(translation_entity
|
||||
(function_definition
|
||||
(identifier)
|
||||
(function_signature
|
||||
(return_list
|
||||
(declaration_specifier
|
||||
(type_specifier_qualifier
|
||||
(type_specifier
|
||||
(int_type))))))
|
||||
(statement_block
|
||||
(block_item_list
|
||||
(block_item
|
||||
(statement
|
||||
(primary_block
|
||||
(iteration_statement
|
||||
(secondary_block
|
||||
(statement
|
||||
(expression_statement)))))))
|
||||
(block_item
|
||||
(statement
|
||||
(jump_statement
|
||||
(expression
|
||||
(assignment_expression
|
||||
(logical_expression
|
||||
(equality_expression
|
||||
(relational_expression
|
||||
(additive_expression
|
||||
(multiplicative_expression
|
||||
(cast_expression
|
||||
(unary_expression
|
||||
(postfix_expression
|
||||
(base_expression
|
||||
(constant
|
||||
(integer_literal)))))))))))))))))))))
|
||||
Reference in New Issue
Block a user