diff options
author | Michael Forney <mforney@mforney.org> | 2022-03-22 00:40:28 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2022-03-22 01:58:31 -0700 |
commit | f2bfceac44e478f7c8828ef3624ab0c8a5b6c97b (patch) | |
tree | 79e66dd502924c32c6ae51665dc2b338e32eb94a /test | |
parent | 2ef69c243bf05282071b9fd66e9ab2ffb8c25783 (diff) |
Allow unnamed parameters in function definitions
Diffstat (limited to 'test')
-rw-r--r-- | test/func-unnamed-param.c | 1 | ||||
-rw-r--r-- | test/func-unnamed-param.qbe | 6 |
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 +} |