blob: 872fb84edf415b368e92b8b621a000a24e3f022e [file]
/* { dg-output "Hello World 123\r*\n" }*/
#![feature(no_core)]
#![no_core]
extern "C" {
fn printf(s: *const i8, ...);
}
fn main() -> i32 {
unsafe {
let a = "Hello World %i\n";
let b = a as *const str;
let c = b as *const i8;
printf(c, 123);
}
0
}