about summary refs log tree commit diff
path: root/tests/codegen/ub-checks.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/codegen/ub-checks.rs')
-rw-r--r--tests/codegen/ub-checks.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/codegen/ub-checks.rs b/tests/codegen/ub-checks.rs
index de48d74e652..67f5bff08d5 100644
--- a/tests/codegen/ub-checks.rs
+++ b/tests/codegen/ub-checks.rs
@@ -8,7 +8,7 @@
 //@ revisions: DEBUG NOCHECKS
 //@ [DEBUG] compile-flags:
 //@ [NOCHECKS] compile-flags: -Zub-checks=no
-//@ compile-flags: -O -Cdebug-assertions=yes
+//@ compile-flags: -Copt-level=3 -Cdebug-assertions=yes
 
 #![crate_type = "lib"]