diff options
| author | 2025-12-11 20:28:26 +0100 | |
|---|---|---|
| committer | 2025-12-11 20:28:26 +0100 | |
| commit | 8f14da7ea9032f31cb35e43ac7159274c10dc541 (patch) | |
| tree | 92a3760c562544eeb068050e548d88b532a168f4 /test/13-c11.c | |
| parent | 31f6b60f650a72d7727d386cef160f4baae70f38 (diff) | |
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.
Diffstat (limited to 'test/13-c11.c')
| -rw-r--r-- | test/13-c11.c | 5 |
1 files changed, 5 insertions, 0 deletions
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); |