3407fcc12e
This new nightly-only flag can be used to toggle fine-grained flags that control the details of coverage instrumentation. Currently the only supported flag value is `branch` (or `no-branch`), which is a placeholder for upcoming support for branch coverage. Other flag values can be added in the future, to prototype proposed new behaviour, or to enable special non-default behaviour.
15 lines
354 B
Rust
15 lines
354 B
Rust
//@ needs-profiler-support
|
|
//@ revisions: branch no-branch bad
|
|
//@ compile-flags -Cinstrument-coverage
|
|
|
|
//@ [branch] check-pass
|
|
//@ [branch] compile-flags: -Zcoverage-options=branch
|
|
|
|
//@ [no-branch] check-pass
|
|
//@ [no-branch] compile-flags: -Zcoverage-options=no-branch
|
|
|
|
//@ [bad] check-fail
|
|
//@ [bad] compile-flags: -Zcoverage-options=bad
|
|
|
|
fn main() {}
|