mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
5330ccdb34
For PGO/coverage tests that don't need to build or run an actual artifact, we can use `-Zno-profiler-runtime` to run the test even when the profiler runtime is not available.
20 lines
509 B
Rust
20 lines
509 B
Rust
//@ revisions: block branch condition mcdc bad
|
|
//@ compile-flags -Cinstrument-coverage -Zno-profiler-runtime
|
|
|
|
//@ [block] check-pass
|
|
//@ [block] compile-flags: -Zcoverage-options=block
|
|
|
|
//@ [branch] check-pass
|
|
//@ [branch] compile-flags: -Zcoverage-options=branch
|
|
|
|
//@ [condition] check-pass
|
|
//@ [condition] compile-flags: -Zcoverage-options=condition
|
|
|
|
//@ [mcdc] check-pass
|
|
//@ [mcdc] compile-flags: -Zcoverage-options=mcdc
|
|
|
|
//@ [bad] check-fail
|
|
//@ [bad] compile-flags: -Zcoverage-options=bad
|
|
|
|
fn main() {}
|