mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
16 lines
286 B
Rust
16 lines
286 B
Rust
// Check that `fn foo(x: i32, ...)` does not print as `fn foo(x: i32, ..., ...)`.
|
|
// See issue #58853.
|
|
|
|
//@ pp-exact
|
|
#![feature(c_variadic)]
|
|
|
|
extern "C" {
|
|
pub fn foo(x: i32, ...);
|
|
}
|
|
|
|
pub unsafe extern "C" fn bar(_: i32, mut ap: ...) -> usize {
|
|
ap.arg::<usize>()
|
|
}
|
|
|
|
fn main() {}
|