diff options
Diffstat (limited to 'test cases/rust/3 staticlib/stuff.rs')
-rw-r--r-- | test cases/rust/3 staticlib/stuff.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test cases/rust/3 staticlib/stuff.rs b/test cases/rust/3 staticlib/stuff.rs new file mode 100644 index 0000000..7cfcdff --- /dev/null +++ b/test cases/rust/3 staticlib/stuff.rs @@ -0,0 +1,14 @@ +#![crate_name = "stuff"] + +extern crate other; + +extern "C" { + fn c_explore_value() -> i32; +} + +pub fn explore( +) -> String { + unsafe { + other::explore(c_explore_value()) + } +} |