mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
0bfdb8d33d
This is a modified copy of `tests/mir-opt/coverage/instrument_coverage.rs`.
14 lines
315 B
Rust
14 lines
315 B
Rust
//@ 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!
|