mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
16 lines
317 B
ObjectPascal
16 lines
317 B
ObjectPascal
//@ 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" {
|
|
unsafe fn foo(x: i32, va1: ...);
|
|
}
|
|
|
|
unsafe extern "C" fn bar(_: i32, mut va2: ...) -> usize { va2.arg::<usize>() }
|