rust/tests/ui/sepcomp/sepcomp-lib.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
307 B
Rust
Raw Normal View History

// run-pass
2014-08-01 22:45:24 +00:00
// aux-build:sepcomp_lib.rs
// Test linking against a library built with -C codegen-units > 1
2014-08-01 22:45:24 +00:00
extern crate sepcomp_lib;
use sepcomp_lib::a::one;
use sepcomp_lib::b::two;
use sepcomp_lib::c::three;
fn main() {
assert_eq!(one(), 1);
assert_eq!(two(), 2);
assert_eq!(three(), 3);
}