summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/remove_storage_markers.rs
blob: 480db8ac155b5d4c06a44e86c38716fb22c4ebe4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// ignore-wasm32 compiled with panic=abort by default
// 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;
    }
}