rust/tests/ui/linking/linker-features-unstable-cc.rs
Rémy Rakic 856c662567 expand -Clinker-features tests
- ensure only `-Clinker-features=-lld` is stabilized, and only on x64
  linux
- test `-Clinker-features` unstable values
2025-07-08 09:30:44 +00:00

14 lines
497 B
Rust

// Check that only `-C linker-features=-lld` is stable on x64 linux, and that other linker
// features require using `-Z unstable-options`.
//
// Note that, currently, only `lld` is parsed on the CLI, but that other linker features can exist
// internally (`cc`).
//
//@ compile-flags: --target=x86_64-unknown-linux-gnu -C linker-features=+cc --crate-type=rlib
//@ needs-llvm-components: x86
#![feature(no_core)]
#![no_core]
//~? ERROR incorrect value `+cc` for codegen option `linker-features`