2023-04-05 03:44:20 -05:00
|
|
|
// ignore-wasm32 compiled with panic=abort by default
|
2022-08-02 19:44:25 -05:00
|
|
|
// unit-test: RemoveStorageMarkers
|
|
|
|
|
2021-01-12 18:00:00 -06:00
|
|
|
// 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;
|
|
|
|
}
|
|
|
|
}
|