aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2022-03-22 00:40:28 -0700
committerMichael Forney <mforney@mforney.org>2022-03-22 01:58:31 -0700
commitf2bfceac44e478f7c8828ef3624ab0c8a5b6c97b (patch)
tree79e66dd502924c32c6ae51665dc2b338e32eb94a /test
parent2ef69c243bf05282071b9fd66e9ab2ffb8c25783 (diff)
Allow unnamed parameters in function definitions
Diffstat (limited to 'test')
-rw-r--r--test/func-unnamed-param.c1
-rw-r--r--test/func-unnamed-param.qbe6
2 files changed, 7 insertions, 0 deletions
diff --git a/test/func-unnamed-param.c b/test/func-unnamed-param.c
new file mode 100644
index 0000000..30680b8
--- /dev/null
+++ b/test/func-unnamed-param.c
@@ -0,0 +1 @@
+void f(int) {}
diff --git a/test/func-unnamed-param.qbe b/test/func-unnamed-param.qbe
new file mode 100644
index 0000000..d4087cd
--- /dev/null
+++ b/test/func-unnamed-param.qbe
@@ -0,0 +1,6 @@
+export
+function $f(w %.1) {
+@start.1
+@body.2
+ ret
+}