about summary refs log tree commit diff
path: root/tests/coverage/loop-break.rs
blob: 9a842225e8331ad1e912e7735a37d0d0b4ad514f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@ edition: 2021

fn main() {
    loop {
        if core::hint::black_box(true) {
            break;
        }
    }
}

// This test is a lightly-modified version of `tests/mir-opt/coverage/instrument_coverage.rs`.
// If this test needs to be blessed, then the mir-opt version probably needs to
// be blessed too!