]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Add a new regression test
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Mon, 23 Oct 2023 11:22:11 +0000 (13:22 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 18:13:12 +0000 (19:13 +0100)
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, ...) {}