mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
add test for -Clink-self-contained
consistency
This commit is contained in:
parent
13948747d0
commit
d634cc5a55
@ -0,0 +1,2 @@
|
||||
error: some `-C link-self-contained` components were both enabled and disabled: crto, linker
|
||||
|
@ -0,0 +1,2 @@
|
||||
error: some `-C link-self-contained` components were both enabled and disabled: linker
|
||||
|
10
tests/ui/linkage-attr/link-self-contained-consistency.rs
Normal file
10
tests/ui/linkage-attr/link-self-contained-consistency.rs
Normal file
@ -0,0 +1,10 @@
|
||||
// Checks that self-contained linking components cannot be both enabled and disabled at the same
|
||||
// time on the CLI.
|
||||
|
||||
// check-fail
|
||||
// revisions: one many
|
||||
// [one] compile-flags: -Clink-self-contained=-linker -Clink-self-contained=+linker -Zunstable-options
|
||||
// [many] compile-flags: -Clink-self-contained=+linker,+crto -Clink-self-contained=-linker,-crto -Zunstable-options
|
||||
// ignore-tidy-linelength
|
||||
|
||||
fn main() {}
|
Loading…
Reference in New Issue
Block a user