blob: af064d068bb1c1695decddf6853d5410c32f094e [file]
// { dg-output "any\r*\nany\r*\nany\r*\n" }
#![feature(no_core)]
#![no_core]
extern "C" {
fn printf(s: *const i8, ...);
}
fn f() {
let r_s = "any\n\0";
let s_p = r_s as *const str;
let c_p = s_p as *const i8;
unsafe {
printf(c_p);
}
}
macro_rules! any {
($($a:expr)*) => {
f();
};
}
fn main() -> i32 {
any!();
any!(a + b);
any!(a + b 14 "gcc");
0
}