2023-10-16 17:36:39 +00:00
|
|
|
// skip-filecheck
|
2023-06-08 09:18:34 +02:00
|
|
|
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
2022-08-02 17:44:25 -07:00
|
|
|
// unit-test: RemoveStorageMarkers
|
|
|
|
|
2021-01-13 00:00:00 +00: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;
|
|
|
|
}
|
|
|
|
}
|