ci: fix macos clang failures with const_fixed_array_containing_references_to_itself_test.v

master
Delyan Angelov 2022-06-04 09:15:37 +03:00
parent 4cfff58fdf
commit f2171b4148
1 changed files with 7 additions and 7 deletions

View File

@ -5,13 +5,13 @@ struct Abc {
const a = [Abc{voidptr(0)}, Abc{unsafe { &a[0] }}, Abc{unsafe { &a[1] }}]! const a = [Abc{voidptr(0)}, Abc{unsafe { &a[0] }}, Abc{unsafe { &a[1] }}]!
fn test_fixed_array() { fn test_fixed_array() {
dump(a) eprintln(a)
dump(voidptr(&a[0])) eprintln(voidptr(&a[0]))
dump(voidptr(&a[1])) eprintln(voidptr(&a[1]))
dump(voidptr(&a[2])) eprintln(voidptr(&a[2]))
dump(voidptr(a[0].prev)) eprintln(voidptr(a[0].prev))
dump(voidptr(a[1].prev)) eprintln(voidptr(a[1].prev))
dump(voidptr(a[2].prev)) eprintln(voidptr(a[2].prev))
assert voidptr(&a[0]) == voidptr(a[1].prev) assert voidptr(&a[0]) == voidptr(a[1].prev)
assert voidptr(&a[1]) == voidptr(a[2].prev) assert voidptr(&a[1]) == voidptr(a[2].prev)
} }