about summary refs log tree commit diff
path: root/tests/run-make/sanitizer-cdylib-link/program.rs
blob: 1026c7f89ba9f4c80bb69814178741045d16e048 (plain)
1
2
3
4
5
6
7
8
9
#[cfg_attr(windows, link(name = "library.dll.lib", modifiers = "+verbatim"))]
#[cfg_attr(not(windows), link(name = "library"))]
extern "C" {
    fn overflow();
}

fn main() {
    unsafe { overflow() }
}