summaryrefslogtreecommitdiffstats
path: root/src/test/ui/sepcomp/auxiliary/sepcomp_lib.rs
blob: 1536228c265b256f0f94d6a9a04a2f4501116b41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// compile-flags: -C codegen-units=3 --crate-type=rlib,dylib -g

pub mod a {
    pub fn one() -> usize {
        1
    }
}

pub mod b {
    pub fn two() -> usize {
        2
    }
}

pub mod c {
    use a::one;
    use b::two;
    pub fn three() -> usize {
        one() + two()
    }
}