blob: 4af3915c36664c474075cbbef5a94326eac6b7e1 [file]
#![feature(no_core)]
#![no_core]
extern "C" {
fn printf(s: *const i8, ...);
}
fn main() {
// { dg-error "expected .c_int. variadic argument" "" { target *-*-* } .+1 }
printf("%d\n" as *const str as *const i8, 1i8);
// { dg-error "expected .c_uint. variadic argument" "" { target *-*-* } .+1 }
printf("%d\n" as *const str as *const i8, 1u8);
// { dg-error "expected .c_double. variadic argument" "" { target *-*-* } .+1 }
printf("%d\n" as *const str as *const i8, 1f32);
}