about summary refs log tree commit diff
path: root/tests/codegen/issues/issue-68667-unwrap-combinators.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/codegen/issues/issue-68667-unwrap-combinators.rs')
-rw-r--r--tests/codegen/issues/issue-68667-unwrap-combinators.rs15
1 files changed, 0 insertions, 15 deletions
diff --git a/tests/codegen/issues/issue-68667-unwrap-combinators.rs b/tests/codegen/issues/issue-68667-unwrap-combinators.rs
deleted file mode 100644
index 7f4a32109fe..00000000000
--- a/tests/codegen/issues/issue-68667-unwrap-combinators.rs
+++ /dev/null
@@ -1,15 +0,0 @@
-#![crate_type = "lib"]
-
-//@ compile-flags: -Copt-level=3
-
-// MIR inlining now optimizes this code.
-
-// CHECK-LABEL: @unwrap_combinators
-// CHECK: {{icmp|trunc}}
-// CHECK-NEXT: icmp
-// CHECK-NEXT: select i1
-// CHECK-NEXT: ret i1
-#[no_mangle]
-pub fn unwrap_combinators(a: Option<i32>, b: i32) -> bool {
-    a.map(|t| t >= b).unwrap_or(false)
-}