aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/name_resolution5.rs
blob: f91c5d57f09be2958ff7a4308e2aa901319ffc5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
fn bar() {
    foo();

    fn foo() {
        fn bar2() {
            foo();
        }

        bar2();
    }
}

fn main() {
    bar();
}