Files
rust/tests/incremental/remove_source_file/main.rs
T
Zalathar 0ea8958c02 Migrate bfail/build-pass tests to bpass (2/2)
This is the subset of incremental tests that have a FIXME to consider migrating
to check-pass instead.

That migration is beyond the scope of this PR, but might be attempted later.
2026-04-22 12:28:25 +10:00

25 lines
514 B
Rust

// This test case makes sure that the compiler doesn't crash due to a failing
// table lookup when a source file is removed.
//@ revisions: bpass1 bpass2
// Note that we specify -g so that the SourceFiles actually get referenced by the
// incr. comp. cache:
//@ compile-flags: -Z query-dep-graph -g
// FIXME(#62277): could be check-pass?
#![crate_type= "rlib"]
#[cfg(bpass1)]
mod auxiliary;
#[cfg(bpass1)]
pub fn foo() {
auxiliary::print_hello();
}
#[cfg(bpass2)]
pub fn foo() {
println!("hello");
}