Remove inline-instrument-coverage-fail.rs test case

This commit is contained in:
Tomasz Miąsko 2021-03-13 00:00:00 +00:00
parent 5a9538acb5
commit ad8f9af7cb
2 changed files with 0 additions and 23 deletions

View file

@ -1,21 +0,0 @@
// Ensures -Zmir-opt-level=3 (specifically, inlining) is not allowed with -Zinstrument-coverage.
// Regression test for issue #80060.
//
// needs-profiler-support
// build-pass
// compile-flags: -Zmir-opt-level=3 -Zinstrument-coverage
#[inline(never)]
fn foo() {}
pub fn baz() {
bar();
}
#[inline(always)]
fn bar() {
foo();
}
fn main() {
bar();
}

View file

@ -1,2 +0,0 @@
warning: `-Z mir-opt-level=3` (or any level > 1) enables function inlining, which is incompatible with `-Z instrument-coverage`. Inlining will be disabled.