]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass-valgrind/cast-enum-with-dtor.rs
Add #[rustc_no_mir] to make tests pass with -Z orbit.
[rust.git] / src / test / run-pass-valgrind / cast-enum-with-dtor.rs
index b13e34256d2293704864de1db0c3144240b40dd9..0de949471c68407cf66129e7aaa16d494d473d6d 100644 (file)
@@ -8,8 +8,12 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// ignore-pretty : (#23623) problems when  ending with // comments
+
+// no-prefer-dynamic
+
 #![allow(dead_code)]
-#![feature(const_fn)]
+#![feature(const_fn, rustc_attrs)]
 
 // check dtor calling order when casting enums.
 
@@ -34,6 +38,7 @@ fn drop(&mut self) {
     }
 }
 
+#[rustc_no_mir] // FIXME #27840 MIR miscompiles this.
 fn main() {
     assert_eq!(FLAG.load(Ordering::SeqCst), 0);
     {