summaryrefslogtreecommitdiffstats
path: root/src/test/run-make/rlib-format-packed-bundled-libs-2/rust_dep.rs
blob: d99dda05cf215dc5ef2abaeb23731567e333335b (plain)
1
2
3
4
5
6
7
8
9
10
11
#![feature(native_link_modifiers_verbatim)]
#[link(name = "native_dep.ext", kind = "static", modifiers = "+verbatim")]
extern "C" {
    fn native_f1() -> i32;
}

pub fn rust_dep() {
    unsafe {
        assert!(native_f1() == 1);
    }
}