| 1 |
extern "C" { |
| 2 |
fn printf(s: *const i8, ...); |
| 3 |
} |
| 4 |
|
| 5 |
#[rustc_builtin_macro] //{ dg-error "internal implementation detail. " "" { target *-*-* } } |
| 6 |
macro_rules! line { |
| 7 |
() => {{}}; |
| 8 |
} |
| 9 |
|
| 10 |
fn main() -> i32 { |
| 11 |
let a = line!(); |
| 12 |
printf("%d\0" as *const str as *const i8, a); |
| 13 |
|
| 14 |
0 |
| 15 |
} |