aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/variadic.rs
blob: 886341b088cbb50dc7debba95c0f1ea8fa99d4fd (plain)
1
2
3
4
5
6
7
8
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);
}