Skip to content

Commit a9e1e43

Browse files
committed
Add UI tests for values accepted by -C symbol-mangling-version
1 parent 42e1e12 commit a9e1e43

File tree

8 files changed

+26
-1
lines changed

8 files changed

+26
-1
lines changed

src/tools/tidy/src/ui_tests.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use std::path::{Path, PathBuf};
1111
const ENTRY_LIMIT: usize = 900;
1212
// FIXME: The following limits should be reduced eventually.
1313
const ISSUES_ENTRY_LIMIT: usize = 1854;
14-
const ROOT_ENTRY_LIMIT: usize = 866;
14+
const ROOT_ENTRY_LIMIT: usize = 867;
1515

1616
const EXPECTED_TEST_FILE_EXTENSIONS: &[&str] = &[
1717
"rs", // test source files
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
error: incorrect value `bad-value` for codegen option `symbol-mangling-version` - either `legacy` or `v0` (RFC 2603) was expected
2+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
error: incorrect value `` for codegen option `symbol-mangling-version` - either `legacy` or `v0` (RFC 2603) was expected
2+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
error: codegen option `symbol-mangling-version` requires either `legacy` or `v0` (RFC 2603) (C symbol-mangling-version=<value>)
2+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// revisions: no-value blank bad
2+
// [no-value] compile-flags: -Csymbol-mangling-version
3+
// [blank] compile-flags: -Csymbol-mangling-version=
4+
// [bad] compile-flags: -Csymbol-mangling-version=bad-value
5+
6+
fn main() {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// check-pass
2+
// revisions: v0
3+
// [v0] compile-flags: -Csymbol-mangling-version=v0
4+
5+
fn main() {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
error: `-C symbol-mangling-version=legacy` requires `-Z unstable-options`
2+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// revisions: legacy legacy-ok
2+
// [legacy] compile-flags: -Csymbol-mangling-version=legacy
3+
// [legacy-ok] check-pass
4+
// [legacy-ok] compile-flags: -Zunstable-options -Csymbol-mangling-version=legacy
5+
6+
fn main() {}

0 commit comments

Comments
 (0)