summaryrefslogtreecommitdiffstats
path: root/tests/rust/va_list.rs
blob: 13503dda7eb6f4d2ad41e9df67778c8b5e77d29d (plain)
1
2
3
4
5
6
7
8
9
10
11
use std::ffi::VaList;

#[no_mangle]
pub unsafe extern "C" fn va_list_test(mut ap: VaList) -> int32_t {
    ap.arg()
}

#[no_mangle]
pub unsafe extern "C" fn va_list_test2(mut ap: ...) -> int32_t {
    ap.arg()
}