From: Pierre-Emmanuel Patry Date: Mon, 23 Oct 2023 11:22:11 +0000 (+0200) Subject: gccrs: Add a new regression test X-Git-Tag: basepoints/gcc-15~2009 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=39308ab20e18063bc46fbb90c206f76b46061037;p=thirdparty%2Fgcc.git gccrs: Add a new regression test 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 --- diff --git a/gcc/testsuite/rust/compile/parse_variadic_function.rs b/gcc/testsuite/rust/compile/parse_variadic_function.rs new file mode 100644 index 000000000000..bef111974704 --- /dev/null +++ b/gcc/testsuite/rust/compile/parse_variadic_function.rs @@ -0,0 +1,4 @@ +fn main() {} + +#[cfg(FALSE)] +fn variadic(x: isize, ...) {}