]> git.lizzy.rs Git - rust.git/blobdiff - src/test/codegen/drop.rs
Add #[rustc_no_mir] to make tests pass with -Z orbit.
[rust.git] / src / test / codegen / drop.rs
index 2ac8de6d802947e3fc43c899b0c6513699c45702..83dd6a3b00258ec5ee4af95d2ff11877cf98cc73 100644 (file)
@@ -11,6 +11,7 @@
 // compile-flags: -C no-prepopulate-passes
 
 #![crate_type = "lib"]
+#![feature(rustc_attrs)]
 
 struct SomeUniqueName;
 
@@ -24,6 +25,7 @@ pub fn possibly_unwinding() {
 
 // CHECK-LABEL: @droppy
 #[no_mangle]
+#[rustc_no_mir] // FIXME #27840 MIR has different codegen.
 pub fn droppy() {
 // Check that there are exactly 6 drop calls. The cleanups for the unwinding should be reused, so
 // that's one new drop call per call to possibly_unwinding(), and finally 3 drop calls for the