add test for -Clink-self-contained
consistency
This commit is contained in:
parent
13948747d0
commit
d634cc5a55
3 changed files with 14 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue