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