summaryrefslogtreecommitdiffstats
path: root/tests/pretty/fn-variadic.rs
blob: 59e477cfa8ecba76fa24692ccdad2ad0331802ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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() {}