Skip to content

Commit 64193da

Browse files
committed
add tracking UI test for upstream LLVM issue
1 parent f9a6b71 commit 64193da

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

src/tools/tidy/src/ui_tests.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use std::path::{Path, PathBuf};
1010
const ENTRY_LIMIT: usize = 900;
1111
// FIXME: The following limits should be reduced eventually.
1212
const ISSUES_ENTRY_LIMIT: usize = 1953;
13-
const ROOT_ENTRY_LIMIT: usize = 894;
13+
const ROOT_ENTRY_LIMIT: usize = 895;
1414

1515
fn check_entries(tests_path: &Path, bad: &mut bool) {
1616
let mut directories: HashMap<PathBuf, usize> = HashMap::new();
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// this test tracks superfluous debug output from LLVM which we can't control
2+
3+
// build-pass
4+
// min-llvm-version: 16
5+
// known-bug: #110743
6+
7+
const SZ: usize = 64_000_000;
8+
type BigDrop = [String; SZ];
9+
10+
fn f(from_fn: BigDrop) {}
11+
12+
fn f2(_moveme: BigDrop) -> String {
13+
let [a, ..] = _moveme;
14+
a
15+
}
16+
17+
fn main() {
18+
f(std::array::from_fn(|_| String::new()));
19+
f2(std::array::from_fn(|_| String::new()));
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
80/7680000120 (0.00%) spills, 7680000040/7680000120 (100.00%) variables
2+
80/7680000120 (0.00%) spills, 7680000040/7680000120 (100.00%) variables

0 commit comments

Comments
 (0)