Skip to content

Commit

Permalink
Add a new regression test for named variadics
Browse files Browse the repository at this point in the history
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 <pierre-emmanuel.patry@embecosm.com>
  • Loading branch information
P-E-P committed Oct 24, 2023
1 parent 0cbf97d commit 385376e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gcc/testsuite/rust/compile/extern_c_named_variadic.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
extern "C" {
fn variadic(x: isize, args: ...);
}

fn main() {}

0 comments on commit 385376e

Please sign in to comment.