rust/tests/ui/linkage-attr/incompatible-flavor.rs
Vadim Petrochenkov b0ce4164f0 linker: Report linker flavors incompatible with the current target
Previously they would be reported as link time errors about unknown linker options
2023-05-29 19:58:11 +03:00

7 lines
231 B
Rust

// compile-flags: --target=x86_64-unknown-linux-gnu -C linker-flavor=msvc --crate-type=rlib
// error-pattern: linker flavor `msvc` is incompatible with the current target
// needs-llvm-components:
#![feature(no_core)]
#![no_core]