mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 20:54:13 +00:00
13 lines
273 B
Rust
13 lines
273 B
Rust
// Tests that failing to run dlltool will raise an error.
|
|
|
|
//@ needs-dlltool
|
|
//@ compile-flags: --crate-type lib --emit link -Cdlltool=does_not_exit.exe
|
|
#[link(name = "foo", kind = "raw-dylib")]
|
|
extern "C" {
|
|
fn f(x: i32);
|
|
}
|
|
|
|
pub fn lib_main() {
|
|
unsafe { f(42); }
|
|
}
|