1 // compile-flags: -C opt-level=3
4 #![feature(c_variadic)]
9 fn vprintf(fmt: *const i8, ap: VaList) -> i32;
12 // Ensure that `va_start` and `va_end` are properly injected even
13 // when the "spoofed" `VaList` is not used.
15 pub unsafe extern "C" fn c_variadic_no_use(fmt: *const i8, mut ap: ...) -> i32 {
16 // CHECK: call void @llvm.va_start
18 // CHECK: call void @llvm.va_end