Files
rust/tests/ui/linkage-attr/raw-dylib/windows/raw-dylib-windows-only.rs

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

10 lines
337 B
Rust
Raw Normal View History

//@ revisions: elf notelf
//@ [elf] only-elf
//@ [notelf] ignore-windows
//@ [notelf] ignore-elf
//@ compile-flags: --crate-type lib
#[link(name = "foo", kind = "raw-dylib")]
//[notelf]~^ ERROR: link kind `raw-dylib` is only supported on Windows targets
//[elf]~^^ ERROR: link kind `raw-dylib` is unstable on ELF platforms
extern "C" {}