summaryrefslogtreecommitdiffstats
path: root/tests/pretty/hir-fn-variadic.pp
blob: 577d9400ad4edfc3b7e2d45bf4476a41a5c49326 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// pretty-compare-only
// pretty-mode:hir
// pp-exact:hir-fn-variadic.pp

#![feature(c_variadic)]
#[prelude_import]
use ::std::prelude::rust_2015::*;
#[macro_use]
extern crate std;

extern "C" {
    fn foo(x: i32, va1: ...);
}

unsafe extern "C" fn bar(_: i32, mut va2: ...) -> usize { va2.arg::<usize>() }