Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
225 B
Rust
Raw Normal View History

2014-11-11 21:34:18 -05:00
#![feature(linkage)]
#[no_mangle]
#[linkage = "external"]
static BAZ: i32 = 21;
2015-08-26 16:57:56 -07:00
#[link(name = "foo", kind = "static")]
2020-09-01 17:12:52 -04:00
extern "C" {
2014-11-11 21:34:18 -05:00
fn what() -> i32;
}
fn main() {
unsafe {
assert_eq!(what(), BAZ);
}
}