1
Fork 0

Remove fragile equal-pointers-unequal/*/print3.rs tests.

This commit is contained in:
Mara Bos 2025-03-31 15:37:16 +02:00
parent 10a76d6347
commit 4e99dca8c3
3 changed files with 0 additions and 73 deletions

View file

@ -1,23 +0,0 @@
//@ known-bug: #107975
//@ compile-flags: -Copt-level=2
//@ run-pass
// https://github.com/rust-lang/rust/issues/107975#issuecomment-1430704499
fn main() {
let a = {
let v = 0;
&v as *const _ as usize
};
let b = {
let v = 0;
&v as *const _ as usize
};
assert_ne!(a, b);
assert_ne!(a, b);
let c = a;
assert_eq!(format!("{} {} {}", a == b, a == c, b == c), "false true false");
println!("{a} {b}");
assert_eq!(format!("{} {} {}", a == b, a == c, b == c), "true true true");
}