rust/tests/mir-opt/remove_storage_markers.rs
2023-01-11 09:32:08 +00:00

14 lines
300 B
Rust

// unit-test: RemoveStorageMarkers
// Checks that storage markers are removed at opt-level=0.
//
// compile-flags: -C opt-level=0 -Coverflow-checks=off
// EMIT_MIR remove_storage_markers.main.RemoveStorageMarkers.diff
fn main() {
let mut sum = 0;
for i in 0..10 {
sum += i;
}
}