mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
12 lines
294 B
Rust
12 lines
294 B
Rust
// A simple test, where foo.rs has a dependency
|
|
// on the rlib (a static Rust-specific library format) bar.rs. If the test passes,
|
|
// rlibs can be built and linked into another file successfully..
|
|
|
|
//@ aux-crate:bar=simple-rlib.rs
|
|
//@ run-pass
|
|
|
|
extern crate bar;
|
|
|
|
fn main() {
|
|
bar::bar();
|
|
}
|