blob: dc647fd63f527651746d09a4298c1ed1cd028649 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// only-x86_64
// only-windows
// compile-flags: --crate-type lib --emit link
#![allow(incomplete_features)]
#![feature(raw_dylib)]
#[link(name = "foo", kind = "raw-dylib")]
extern "stdcall" {
fn f(x: i32);
//~^ ERROR ABI not supported by `#[link(kind = "raw-dylib")]` on this architecture
}
pub fn lib_main() {
unsafe { f(42); }
}
|