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

#[rustc_builtin_macro] //{ dg-error "internal implementation detail. " "" { target *-*-* }  }
macro_rules! line {
    () => {{}};
}

fn main() -> i32 {
    let a = line!();
    printf("%d\0" as *const str as *const i8, a);

    0
}