aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/13-c11.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-12-11 20:28:26 +0100
committerlemon <lsof@mailbox.org>2025-12-11 20:28:26 +0100
commit8f14da7ea9032f31cb35e43ac7159274c10dc541 (patch)
tree92a3760c562544eeb068050e548d88b532a168f4 /test/13-c11.c
parent31f6b60f650a72d7727d386cef160f4baae70f38 (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.c5
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);