rust/tests/pretty/fn-variadic.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
285 B
Rust
Raw Normal View History

// Check that `fn foo(x: i32, ...)` does not print as `fn foo(x: i32, ..., ...)`.
// See issue #58853.
2019-03-02 09:16:36 -06:00
// 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>()
}
2021-12-01 13:45:14 -06:00
fn main() {}