Skip to content

Commit f34a3a8

Browse files
committed
Rename the FooBar type in test/core.jl (#18279)
so `JULIA_CPU_CORES=1 ./julia test/runtests.jl core compile` passes after #18150 (cherry picked from commit 10f3c35)
1 parent 53c7720 commit f34a3a8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/core.jl

+8-8
Original file line numberDiff line numberDiff line change
@@ -1019,20 +1019,20 @@ let
10191019
@test_throws InexactError unsafe_wrap(Array, pointer(a), -3)
10201020
end
10211021

1022-
immutable FooBar
1022+
immutable FooBar2515
10231023
foo::Int
10241024
bar::Int
10251025
end
10261026
let
10271027
local X, p
1028-
X = FooBar[ FooBar(3,1), FooBar(4,4) ]
1028+
X = FooBar2515[ FooBar2515(3,1), FooBar2515(4,4) ]
10291029
p = pointer(X)
1030-
@test unsafe_load(p) == FooBar(3,1)
1031-
@test unsafe_load(p, 2) == FooBar(4,4)
1032-
unsafe_store!(p, FooBar(8,4))
1033-
@test X[1] == FooBar(8,4)
1034-
unsafe_store!(p, FooBar(7,3), 1)
1035-
@test X[1] == FooBar(7,3)
1030+
@test unsafe_load(p) == FooBar2515(3,1)
1031+
@test unsafe_load(p, 2) == FooBar2515(4,4)
1032+
unsafe_store!(p, FooBar2515(8,4))
1033+
@test X[1] == FooBar2515(8,4)
1034+
unsafe_store!(p, FooBar2515(7,3), 1)
1035+
@test X[1] == FooBar2515(7,3)
10361036
end
10371037

10381038
# issue #1287, combinations of try, catch, return

0 commit comments

Comments
 (0)