From a6e0b5a111da61a5bf5d64fc59c7adc658251928 Mon Sep 17 00:00:00 2001 From: Pierre-Emmanuel Patry Date: Mon, 23 Oct 2023 14:02:59 +0200 Subject: [PATCH] Add a new regression test for named variadics This test ensure that extern C named variadics are parsed correctly. gcc/testsuite/ChangeLog: * rust/compile/extern_c_named_variadic.rs: New test. Signed-off-by: Pierre-Emmanuel Patry --- gcc/testsuite/rust/compile/extern_c_named_variadic.rs | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 gcc/testsuite/rust/compile/extern_c_named_variadic.rs diff --git a/gcc/testsuite/rust/compile/extern_c_named_variadic.rs b/gcc/testsuite/rust/compile/extern_c_named_variadic.rs new file mode 100644 index 000000000000..d4cf9549c23e --- /dev/null +++ b/gcc/testsuite/rust/compile/extern_c_named_variadic.rs @@ -0,0 +1,5 @@ +extern "C" { + fn variadic(x: isize, args: ...); +} + +fn main() {}