]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Add named variadic argument test
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Mon, 6 Nov 2023 10:37:50 +0000 (11:37 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 18:13:12 +0000 (19:13 +0100)
commit0df14bb1f3d944ea7281979d03c812a8d2c09ce7
treea8f6826e5c79d4b683b878f47cc1b4d45def3a1a
parent8e3740a25eea13c9639ba9f11a0c1045de7374f8
gccrs: Add named variadic argument test

Variadic arguments may have a name or a pattern. This commit provides two
new tests in order to ensure their correct behavior.

gcc/testsuite/ChangeLog:

* rust/compile/pattern_variadic.rs: New test.
* rust/execute/torture/named_variadic.rs: New test.

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