From f2bfceac44e478f7c8828ef3624ab0c8a5b6c97b Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Tue, 22 Mar 2022 00:40:28 -0700 Subject: Allow unnamed parameters in function definitions --- test/func-unnamed-param.c | 1 + test/func-unnamed-param.qbe | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 test/func-unnamed-param.c create mode 100644 test/func-unnamed-param.qbe (limited to 'test') 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 +} -- cgit v1.2.3