summary refs log tree commit diff
path: root/src/test/run-pass/companionmod.rc
blob: 8736345c9827c8bbd6bad48462ce77ea1c5e6e1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// xfail-win32 don't understand what's wrong
// Test that crates and directory modules can contain code
#[legacy_exports];

#[path = "companionmod-src"]
mod a {
    #[legacy_exports];
    mod b {
        #[legacy_exports];
        #[legacy_exports]
        mod x;
    }
    #[path = "d"]
    mod c {
        #[legacy_exports];
        #[legacy_exports]
        mod x;
    }
}