coverage: Add tests/coverage/loop-break.rs
This is a modified copy of `tests/mir-opt/coverage/instrument_coverage.rs`.
This commit is contained in:
parent
dc6def3042
commit
0bfdb8d33d
3 changed files with 41 additions and 0 deletions
14
tests/coverage/loop-break.coverage
Normal file
14
tests/coverage/loop-break.coverage
Normal file
|
@ -0,0 +1,14 @@
|
|||
LL| |//@ edition: 2021
|
||||
LL| |
|
||||
LL| 1|fn main() {
|
||||
LL| 1| loop {
|
||||
LL| 1| if core::hint::black_box(true) {
|
||||
LL| 1| break;
|
||||
LL| 0| }
|
||||
LL| | }
|
||||
LL| 1|}
|
||||
LL| |
|
||||
LL| |// This test is a lightly-modified version of `tests/mir-opt/coverage/instrument_coverage.rs`.
|
||||
LL| |// If this test needs to be blessed, then the mir-opt version probably needs to
|
||||
LL| |// be blessed too!
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue