]> gcc.gnu.org Git - gcc.git/commitdiff
Add a new regression test
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Mon, 23 Oct 2023 11:22:11 +0000 (13:22 +0200)
committerPhilip Herron <philip.herron@embecosm.com>
Thu, 9 Nov 2023 15:39:45 +0000 (15:39 +0000)
This new test highlight the behavior of the new parser and it's ability
to parse variadic rust functions.

gcc/testsuite/ChangeLog:

* rust/compile/parse_variadic_function.rs: New test.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/testsuite/rust/compile/parse_variadic_function.rs [new file with mode: 0644]

diff --git a/gcc/testsuite/rust/compile/parse_variadic_function.rs b/gcc/testsuite/rust/compile/parse_variadic_function.rs
new file mode 100644 (file)
index 0000000..bef1119
--- /dev/null
@@ -0,0 +1,4 @@
+fn main() {}
+
+#[cfg(FALSE)]
+fn variadic(x: isize, ...) {}
This page took 0.058794 seconds and 5 git commands to generate.