os-rust/tests/run-make/sanitizer-cdylib-link/program.rs

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

10 lines
203 B
Rust
Raw Normal View History

#[cfg_attr(windows, link(name = "library.dll.lib", modifiers = "+verbatim"))]
#[cfg_attr(not(windows), link(name = "library"))]
2020-09-01 17:12:52 -04:00
extern "C" {
fn overflow();
}
2016-12-29 23:28:11 -05:00
fn main() {
unsafe { overflow() }
2016-12-29 23:28:11 -05:00
}