mirror of
https://github.com/rust-lang/rust
synced 2024-09-06 01:11:17 +00:00
14 lines
239 B
Rust
14 lines
239 B
Rust
//@ pretty-compare-only
|
|
//@ pretty-mode:hir
|
|
//@ pp-exact:hir-fn-variadic.pp
|
|
|
|
#![feature(c_variadic)]
|
|
|
|
extern "C" {
|
|
pub fn foo(x: i32, va1: ...);
|
|
}
|
|
|
|
pub unsafe extern "C" fn bar(_: i32, mut va2: ...) -> usize {
|
|
va2.arg::<usize>()
|
|
}
|