]> git.lizzy.rs Git - rust.git/blob - tests/ui/sepcomp/sepcomp-lib.rs
Account for method call and indexing when looking for inner-most path in expression
[rust.git] / tests / ui / sepcomp / sepcomp-lib.rs
1 // run-pass
2 // aux-build:sepcomp_lib.rs
3
4 // Test linking against a library built with -C codegen-units > 1
5
6
7 extern crate sepcomp_lib;
8 use sepcomp_lib::a::one;
9 use sepcomp_lib::b::two;
10 use sepcomp_lib::c::three;
11
12 fn main() {
13     assert_eq!(one(), 1);
14     assert_eq!(two(), 2);
15     assert_eq!(three(), 3);
16 }