ci: fix macos clang failures with const_fixed_array_containing_references_to_itself_test.v
parent
4cfff58fdf
commit
f2171b4148
|
@ -5,13 +5,13 @@ struct Abc {
|
|||
const a = [Abc{voidptr(0)}, Abc{unsafe { &a[0] }}, Abc{unsafe { &a[1] }}]!
|
||||
|
||||
fn test_fixed_array() {
|
||||
dump(a)
|
||||
dump(voidptr(&a[0]))
|
||||
dump(voidptr(&a[1]))
|
||||
dump(voidptr(&a[2]))
|
||||
dump(voidptr(a[0].prev))
|
||||
dump(voidptr(a[1].prev))
|
||||
dump(voidptr(a[2].prev))
|
||||
eprintln(a)
|
||||
eprintln(voidptr(&a[0]))
|
||||
eprintln(voidptr(&a[1]))
|
||||
eprintln(voidptr(&a[2]))
|
||||
eprintln(voidptr(a[0].prev))
|
||||
eprintln(voidptr(a[1].prev))
|
||||
eprintln(voidptr(a[2].prev))
|
||||
assert voidptr(&a[0]) == voidptr(a[1].prev)
|
||||
assert voidptr(&a[1]) == voidptr(a[2].prev)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue