diff options
Diffstat (limited to 'tests/mir-opt/remove_storage_markers.rs')
-rw-r--r-- | tests/mir-opt/remove_storage_markers.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/mir-opt/remove_storage_markers.rs b/tests/mir-opt/remove_storage_markers.rs new file mode 100644 index 000000000..f00b82691 --- /dev/null +++ b/tests/mir-opt/remove_storage_markers.rs @@ -0,0 +1,13 @@ +// 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; + } +} |