rust/tests/run-make/sanitizer-dylib-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 Permalink Normal View History

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