blob: 58d88dfe2b314e8bda973988b774f0f9250a4fcc [file]
// { dg-output "Value is 10\r*\n" }
#![feature(no_core)]
#![no_core]
const BAZ: i32 = 10;
extern "C" {
fn printf(s: *const i8, ...);
}
fn foo() {
fn bar() {
let e = BAZ;
unsafe {
printf("Value is %i\n" as *const str as *const i8, e);
}
}
bar();
}
fn main() -> i32 {
foo();
0
}