1
Fork 0

Migrate the remaining run-make/coverage-reports tests over to run-coverage

To make it easier to verify that the output snapshots have been migrated
faithfully, this change adds some temporary helper code that lets us avoid
having to completely re-bless the existing snapshots.

A later change in this PR will then re-bless the tests and remove the temporary
helper code.
This commit is contained in:
Zalathar 2023-06-12 18:07:04 +10:00
parent 9d2564a110
commit a2c0b38897
16 changed files with 40 additions and 22 deletions

View file

@ -0,0 +1,22 @@
// compile-flags: -Cinstrument-coverage -Ccodegen-units=4 -Copt-level=0
#![allow(dead_code)]
mod foo {
#[inline(always)]
pub fn called() { }
fn uncalled() { }
}
pub mod bar {
pub fn call_me() {
super::foo::called();
}
}
pub mod baz {
pub fn call_me() {
super::foo::called();
}
}