summary refs log tree commit diff
path: root/tests/coverage/loop-break.coverage
blob: 1b7c64fb68d5bc411baae6d187df0fcf95ba9e62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
   LL|       |//@ edition: 2021
   LL|       |
   LL|      1|fn main() {
   LL|       |    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!