summaryrefslogtreecommitdiffstats
path: root/test cases/rust/2 sharedlib/stuff.rs
blob: e7c0521fe2fdd2f1dc36167e53f3e602ed7a0f5c (plain)
1
2
3
4
5
6
7
8
9
10
11
#![crate_name = "stuff"]

extern "C" {
        fn c_value() -> i32;
}

pub fn explore() -> String {
    unsafe {
        format!("library{}string", c_value())
    }
}