Skip to content

Commit d634cc5

Browse files
committed
add test for -Clink-self-contained consistency
1 parent 1394874 commit d634cc5

3 files changed

+14
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
error: some `-C link-self-contained` components were both enabled and disabled: crto, linker
2+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
error: some `-C link-self-contained` components were both enabled and disabled: linker
2+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Checks that self-contained linking components cannot be both enabled and disabled at the same
2+
// time on the CLI.
3+
4+
// check-fail
5+
// revisions: one many
6+
// [one] compile-flags: -Clink-self-contained=-linker -Clink-self-contained=+linker -Zunstable-options
7+
// [many] compile-flags: -Clink-self-contained=+linker,+crto -Clink-self-contained=-linker,-crto -Zunstable-options
8+
// ignore-tidy-linelength
9+
10+
fn main() {}

0 commit comments

Comments
 (0)