about summary refs log tree commit diff
path: root/src/test/codegen/align-struct.rs
diff options
context:
space:
mode:
authorDylan MacKenzie <ecstaticmorse@gmail.com>2020-05-16 13:42:41 -0700
committerDylan MacKenzie <ecstaticmorse@gmail.com>2020-05-16 17:15:24 -0700
commit8c710118f631af9b075bbc2e24c4a61fd901a130 (patch)
treec2a8a2281a83fb00845e36ca4083a18c9eccbed8 /src/test/codegen/align-struct.rs
parentb19d5c05929bc4ead9b127b8e28aa6c7a40119da (diff)
downloadrust-8c710118f631af9b075bbc2e24c4a61fd901a130.tar.gz
rust-8c710118f631af9b075bbc2e24c4a61fd901a130.zip
Disable MIR optimization for alignment codegen tests
NRVO optimizes away the locals whose alignment is tested. I don't think
this affects the purpose of the test.
Diffstat (limited to 'src/test/codegen/align-struct.rs')
-rw-r--r--src/test/codegen/align-struct.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/codegen/align-struct.rs b/src/test/codegen/align-struct.rs
index 5e290323907..cda7235a3d8 100644
--- a/src/test/codegen/align-struct.rs
+++ b/src/test/codegen/align-struct.rs
@@ -1,4 +1,4 @@
-// compile-flags: -C no-prepopulate-passes
+// compile-flags: -C no-prepopulate-passes -Z mir-opt-level=0
 // ignore-tidy-linelength
 
 #![crate_type = "lib"]