From 8f14da7ea9032f31cb35e43ac7159274c10dc541 Mon Sep 17 00:00:00 2001 From: lemon Date: Thu, 11 Dec 2025 20:28:26 +0100 Subject: c: accept C99 `[static N]` style array decls, changes to fn quals Function parameters qualifiers don't matter outside of function definition. `int (const int)` should be compatible with `int(int)` etc. So no need to store them in the typedata. --- test/13-c11.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test') diff --git a/test/13-c11.c b/test/13-c11.c index 479c2d7..e0302e4 100644 --- a/test/13-c11.c +++ b/test/13-c11.c @@ -15,6 +15,11 @@ int foo(int x) { else return x; } +int s(int n, int x[]); +int s(int n, int *x); +int s(int n, int (*const x)); +int s(int n, int x[*]); + struct x{int h:2;} X; int main(int argc, char **argv) { return foo(0); -- cgit v1.2.3