diff options
Diffstat (limited to 'test/rust-from-c/foo/foo.rs')
-rw-r--r-- | test/rust-from-c/foo/foo.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/rust-from-c/foo/foo.rs b/test/rust-from-c/foo/foo.rs new file mode 100644 index 0000000..8735b67 --- /dev/null +++ b/test/rust-from-c/foo/foo.rs @@ -0,0 +1,6 @@ +extern crate bar; + +#[no_mangle] +pub extern "C" fn foo(x: i32) -> i32 { + return bar::bar(x); +} |