error: expected expression, found: 'else'
|  --> in tests/fixtures/parser_recovery.c:2:10
|
2   return else;
|          ^
error: storage classes not allowed in this specifier
|  --> in tests/fixtures/parser_recovery.c:7:3
|
7   typedef int a;
|   ^
error: cannot have empty 'enum'
|  --> in tests/fixtures/parser_recovery.c:9:5
|
9     enum C {} empty;
|     ^
error: expected ';' after member declaration
|  --> in tests/fixtures/parser_recovery.c:12:9
|
12   int n long last;
|          ^
error: cannot define functions in for-statement
|  --> in tests/fixtures/parser_recovery.c:16:12
|
16   for (int foo(){}; -2;;) {
|             ^
error: expected expression, found: ')'
|  --> in tests/fixtures/parser_recovery.c:16:25
|
16   for (int foo(){}; -2;;) {
|                          ^
error: expected '=' after array designator
|  --> in tests/fixtures/parser_recovery.c:23:16
|
23 int a[3] = {[0], 2, 1 -- -};
|                 ^
error: expected ';' after member declaration
|  --> in tests/fixtures/parser_recovery.c:26:9
|
26   int a a;
|          ^
error: storage classes not allowed in this specifier
|  --> in tests/fixtures/parser_recovery.c:28:5
|
28     typedef long b;
|      ^
error: cannot have empty 'struct'
|  --> in tests/fixtures/parser_recovery.c:27:3
|
27   struct {
|    ^
error: expected ';' after member declaration
|  --> in tests/fixtures/parser_recovery.c:32:1
|
32 };
|  ^
error: expected identifier following type-specifier
|  --> in tests/fixtures/parser_recovery.c:34:1
|
34 return 1 + 2;
|  ^
error: expected ';' after declaration
|  --> in tests/fixtures/parser_recovery.c:36:7
|
36 int a a;
|        ^
error: expected expression, found: ')'
|  --> in tests/fixtures/parser_recovery.c:39:14
|
39   if (a + a +) {
|               ^
error: expected expression, found: ';'
|  --> in tests/fixtures/parser_recovery.c:44:15
|
44   int a = 3 + ;
|                ^
error: expected ';' after declaration
|  --> in tests/fixtures/parser_recovery.c:49:7
|
49       printf("%d %d\n", a, b);
|        ^
error: expected ';' after declaration
|  --> in tests/fixtures/parser_recovery.c:51:9
|
51   int a e;
|          ^
error: expected ';' after expression
|  --> in tests/fixtures/parser_recovery.c:54:17
|
54 int foo() { but this will be ignored; }
|                  ^
error: expected identifier following type-specifier
|  --> in tests/fixtures/parser_recovery.c:55:1
|
55 }
|  ^
error: expected identifier following type-specifier
|  --> in tests/fixtures/parser_recovery.c:56:1
|
56 {
|  ^
error: expected ')' after function parameters
|  --> in tests/fixtures/parser_recovery.c:62:16
|
62 void bar(int a a, some) { return; }
|                 ^
error: expected ';' after declaration
|  --> in tests/fixtures/parser_recovery.c:64:11
|
64 int x, x(){};
|            ^
22 errors generated.
