aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/execute/crate-metavar1.rs
blob: 8418308afb7bdd7ebdac4917a139356da223d43c (plain)
1
2
3
4
5
6
7
8
9
10
11
macro_rules! foo {
    () => {
        $crate::bar()
    }
}

pub fn bar() -> i32 { 1 }

fn main() -> i32 {
    foo!() - crate::bar()
}