Skip to content

Commit e7dfd4a

Browse files
Migrate run-make/inline-always-many-cgu to rmake.rs
1 parent d9962bb commit e7dfd4a

File tree

3 files changed

+18
-9
lines changed

3 files changed

+18
-9
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ run-make/glibc-staticlib-args/Makefile
6161
run-make/include_bytes_deps/Makefile
6262
run-make/incr-add-rust-src-component/Makefile
6363
run-make/incr-foreign-head-span/Makefile
64-
run-make/inline-always-many-cgu/Makefile
6564
run-make/interdependent-c-libraries/Makefile
6665
run-make/intrinsic-unreachable/Makefile
6766
run-make/invalid-library/Makefile

tests/run-make/inline-always-many-cgu/Makefile

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
use run_make_support::fs_wrapper::read_to_string;
2+
use run_make_support::regex::Regex;
3+
use run_make_support::{read_dir, rustc};
4+
5+
use std::ffi::OsStr;
6+
7+
fn main() {
8+
rustc().input("foo.rs").emit("llvm-ir").codegen_units(2).run();
9+
let re = Regex::new(r"\bcall\b").unwrap();
10+
let mut nb_ll = 0;
11+
read_dir(".", |path| {
12+
if path.is_file() && path.extension().is_some_and(|ext| ext == OsStr::new("ll")) {
13+
assert!(!re.is_match(&read_to_string(path)));
14+
nb_ll += 1;
15+
}
16+
});
17+
assert!(nb_ll > 0);
18+
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy