diff options
Diffstat (limited to 'tests/run-make-fulldeps/interdependent-c-libraries/bar.rs')
-rw-r--r-- | tests/run-make-fulldeps/interdependent-c-libraries/bar.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/run-make-fulldeps/interdependent-c-libraries/bar.rs b/tests/run-make-fulldeps/interdependent-c-libraries/bar.rs new file mode 100644 index 000000000..3c2c3f218 --- /dev/null +++ b/tests/run-make-fulldeps/interdependent-c-libraries/bar.rs @@ -0,0 +1,14 @@ +#![crate_type = "rlib"] + +extern crate foo; + +#[link(name = "bar", kind = "static")] +extern "C" { + fn bar(); +} + +pub fn doit() { + unsafe { + bar(); + } +} |