[gcc r14-8130] gccrs: Add a new regression test

Arthur Cohen cohenarthur@gcc.gnu.org
Tue Jan 16 18:16:12 GMT 2024


https://gcc.gnu.org/g:39308ab20e18063bc46fbb90c206f76b46061037

commit r14-8130-g39308ab20e18063bc46fbb90c206f76b46061037
Author: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Date:   Mon Oct 23 13:22:11 2023 +0200

    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 <pierre-emmanuel.patry@embecosm.com>

Diff:
---
 gcc/testsuite/rust/compile/parse_variadic_function.rs | 4 ++++
 1 file changed, 4 insertions(+)

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 00000000000..bef11197470
--- /dev/null
+++ b/gcc/testsuite/rust/compile/parse_variadic_function.rs
@@ -0,0 +1,4 @@
+fn main() {}
+
+#[cfg(FALSE)]
+fn variadic(x: isize, ...) {}


More information about the Gcc-cvs mailing list