aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/pattern_variadic.rs
blob: 2932b70f5b472943704d69b5e58c591a168a99c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
extern "C" {
    fn printf(fmt: *const i8, _: ...);
}

fn main() -> i32 {
    unsafe {
        printf(
            "%s" as *const str as *const i8,
            "Message" as *const str as *const i8,
        );
    }

    0
}