Open samkho opened 2 months ago
11 (out of 220) test files from https://github.com/c-testsuite/c-testsuite/tree/master/tests/single-exec fail to compile with chibicc. They compile successfully with gcc.
Errors below:
00075 00075.c:74: #error fail ^ error 00121 00121.c:1: int f(int a), g(int a), a; ^ expected '{' 00152 00152.c:6: #error " # line line" not work as expected ^ error 00162 00162.c:2: void fooc(int x[const 5]); ^ expected an expression 00170 00170.c:22: enum efoo; ^ unknown enum type 00204 internal error at parse.c:1413 00209 00209.c:3: enum E *e; ^ unknown enum type 00210 00210.c:14: extern void foo (void) attribute((stdcall)); ^ expected '{' 00213 00213.c:17: ({ ^ statement expression returning void is not supported 00214 00214.c:13: if (__builtin_expect(!!(_brk_start == 0), 0)) ^ implicit declaration of a function 00216 00216.c:88: union UV guv3 = {.b = 8, .a = 7}; ^ expected '}'
00075 00075.c:74: #error fail ^ error
00121 00121.c:1: int f(int a), g(int a), a; ^ expected '{'
00152 00152.c:6: #error " # line line" not work as expected ^ error
00162 00162.c:2: void fooc(int x[const 5]); ^ expected an expression
00170 00170.c:22: enum efoo; ^ unknown enum type
00204 internal error at parse.c:1413
00209 00209.c:3: enum E *e; ^ unknown enum type
00210 00210.c:14: extern void foo (void) attribute((stdcall)); ^ expected '{'
00213 00213.c:17: ({ ^ statement expression returning void is not supported
00214 00214.c:13: if (__builtin_expect(!!(_brk_start == 0), 0)) ^ implicit declaration of a function
00216 00216.c:88: union UV guv3 = {.b = 8, .a = 7}; ^ expected '}'
11 (out of 220) test files from https://github.com/c-testsuite/c-testsuite/tree/master/tests/single-exec fail to compile with chibicc. They compile successfully with gcc.
Errors below: