Skip to content

Commit

Permalink
add tracking UI test for upstream LLVM issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Ezrashaw committed May 6, 2023
1 parent f9a6b71 commit 64193da
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/tidy/src/ui_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use std::path::{Path, PathBuf};
const ENTRY_LIMIT: usize = 900;
// FIXME: The following limits should be reduced eventually.
const ISSUES_ENTRY_LIMIT: usize = 1953;
const ROOT_ENTRY_LIMIT: usize = 894;
const ROOT_ENTRY_LIMIT: usize = 895;

fn check_entries(tests_path: &Path, bad: &mut bool) {
let mut directories: HashMap<PathBuf, usize> = HashMap::new();
Expand Down
20 changes: 20 additions & 0 deletions tests/ui/upstream-llvm/issue-110743-debug-output.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// this test tracks superfluous debug output from LLVM which we can't control

// build-pass
// min-llvm-version: 16
// known-bug: #110743

const SZ: usize = 64_000_000;
type BigDrop = [String; SZ];

fn f(from_fn: BigDrop) {}

fn f2(_moveme: BigDrop) -> String {
let [a, ..] = _moveme;
a
}

fn main() {
f(std::array::from_fn(|_| String::new()));
f2(std::array::from_fn(|_| String::new()));
}
2 changes: 2 additions & 0 deletions tests/ui/upstream-llvm/issue-110743-debug-output.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
80/7680000120 (0.00%) spills, 7680000040/7680000120 (100.00%) variables
80/7680000120 (0.00%) spills, 7680000040/7680000120 (100.00%) variables

0 comments on commit 64193da

Please sign in to comment.