summaryrefslogtreecommitdiffstats
path: root/src/test/mir-opt/const_prop/control_flow_simplification.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/mir-opt/const_prop/control_flow_simplification.rs')
-rw-r--r--src/test/mir-opt/const_prop/control_flow_simplification.rs21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/test/mir-opt/const_prop/control_flow_simplification.rs b/src/test/mir-opt/const_prop/control_flow_simplification.rs
deleted file mode 100644
index 7dbe8e734..000000000
--- a/src/test/mir-opt/const_prop/control_flow_simplification.rs
+++ /dev/null
@@ -1,21 +0,0 @@
-// unit-test: ConstProp
-// compile-flags: -Zmir-opt-level=1
-
-trait NeedsDrop: Sized {
- const NEEDS: bool = std::mem::needs_drop::<Self>();
-}
-
-impl<This> NeedsDrop for This {}
-
-// EMIT_MIR control_flow_simplification.hello.ConstProp.diff
-// EMIT_MIR control_flow_simplification.hello.PreCodegen.before.mir
-fn hello<T>(){
- if <bool>::NEEDS {
- panic!()
- }
-}
-
-pub fn main() {
- hello::<()>();
- hello::<Vec<()>>();
-}