Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

11 files from c-testsuite fail to compile #138

Open
samkho opened this issue Aug 19, 2024 · 0 comments
Open

11 files from c-testsuite fail to compile #138

samkho opened this issue Aug 19, 2024 · 0 comments

Comments

@samkho
Copy link

samkho commented Aug 19, 2024

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 '}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant