diff options
Diffstat (limited to 'tests/codegen/option-niche-unfixed/option-nonzero-eq.rs')
| -rw-r--r-- | tests/codegen/option-niche-unfixed/option-nonzero-eq.rs | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/codegen/option-niche-unfixed/option-nonzero-eq.rs b/tests/codegen/option-niche-unfixed/option-nonzero-eq.rs deleted file mode 100644 index 308856cfb7e..00000000000 --- a/tests/codegen/option-niche-unfixed/option-nonzero-eq.rs +++ /dev/null @@ -1,24 +0,0 @@ -//@ should-fail -//@ compile-flags: -Copt-level=3 -Zmerge-functions=disabled -//! FIXME(#49892) -//! Test that the derived implementation of `PartialEq` for `Option` is not fully -//! optimized by LLVM. If this starts passing, the test and manual impl should -//! be removed. -#![crate_type = "lib"] - -use std::num::NonZero; - -#[derive(Copy, Clone, PartialEq, Eq)] -pub enum Option<T> { - None, - Some(T), -} - -// CHECK-LABEL: @non_zero_eq -#[no_mangle] -pub fn non_zero_eq(l: Option<NonZero<u32>>, r: Option<NonZero<u32>>) -> bool { - // CHECK: start: - // CHECK-NEXT: icmp eq i32 - // CHECK-NEXT: ret i1 - l == r -} |
