mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
19 lines
426 B
Rust
19 lines
426 B
Rust
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
|
// 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() {
|
|
// CHECK-LABEL: fn main(
|
|
|
|
// CHECK-NOT: StorageDead
|
|
// CHECK-NOT: StorageLive
|
|
let mut sum = 0;
|
|
for i in 0..10 {
|
|
sum += i;
|
|
}
|
|
}
|