Avoid should-fail in a codegen-llvm test

This commit is contained in:
bjorn3 2026-01-13 15:21:20 +00:00
parent 8afa95d28f
commit 15112eee67

View file

@ -1,6 +1,5 @@
//@ should-fail
//@ known-bug: #49892
//@ 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.
@ -18,7 +17,7 @@ pub enum Option<T> {
#[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
// COMMENTEDCHECK-NEXT: icmp eq i32
// COMMENTEDCHECK-NEXT: ret i1
l == r
}