test: update C tests from upstream

This commit is contained in:
Amaan Qureshi 2023-07-15 20:07:46 -04:00
parent 193f29efe2
commit fc0e3a34ba
No known key found for this signature in database
GPG key ID: E67890ADC4227273

View file

@ -14,8 +14,8 @@ int main() {
(primitive_type)
(function_declarator (identifier) (parameter_list))
(compound_statement
(expression_statement (call_expression (identifier) (argument_list (string_literal))) (MISSING ";"))
(expression_statement (call_expression (identifier) (argument_list (string_literal))) (MISSING ";")))))
(expression_statement (call_expression (identifier) (argument_list (string_literal (string_content)))) (MISSING ";"))
(expression_statement (call_expression (identifier) (argument_list (string_literal (string_content)))) (MISSING ";")))))
==============================================
Top-level declarations with missing semicolons
@ -53,7 +53,7 @@ int c() {
(translation_unit
(preproc_ifdef (identifier)
(linkage_specification (string_literal) (declaration_list
(linkage_specification (string_literal (string_content)) (declaration_list
(preproc_call (preproc_directive))
(comment)
(declaration (primitive_type) (identifier))