rust/tests/pretty/hir-fn-variadic.pp

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

16 lines
307 B
Puppet
Raw Normal View History

// 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>() }