about summary refs log tree commit diff
path: root/tests/ui/imports/simple-rlib-import.rs
blob: 6eab7ba04cfaf0cd9d013eec67649fc2df1871b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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();
}