about summary refs log tree commit diff
path: root/tests/codegen/slice-position-bounds-check.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/codegen/slice-position-bounds-check.rs')
-rw-r--r--tests/codegen/slice-position-bounds-check.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/codegen/slice-position-bounds-check.rs b/tests/codegen/slice-position-bounds-check.rs
index f83e2f2ec44..0d1d1d869ae 100644
--- a/tests/codegen/slice-position-bounds-check.rs
+++ b/tests/codegen/slice-position-bounds-check.rs
@@ -1,4 +1,4 @@
-//@ compile-flags: -O -C panic=abort
+//@ compile-flags: -Copt-level=3 -C panic=abort
 #![crate_type = "lib"]
 
 fn search<T: Ord + Eq>(arr: &mut [T], a: &T) -> Result<usize, ()> {