Skip to content

Commit

Permalink
Rename the FooBar type in test/core.jl
Browse files Browse the repository at this point in the history
so `JULIA_CPU_CORES=1 ./julia test/runtests.jl core compile` passes
after #18150

(cherry picked from commit cfceca4)
ref #18279
  • Loading branch information
tkelman committed Aug 29, 2016
1 parent c5a36a0 commit 31887cb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/core.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1019,20 +1019,20 @@ let
@test_throws InexactError unsafe_wrap(Array, pointer(a), -3)
end

immutable FooBar
immutable FooBar2515
foo::Int
bar::Int
end
let
local X, p
X = FooBar[ FooBar(3,1), FooBar(4,4) ]
X = FooBar2515[ FooBar2515(3,1), FooBar2515(4,4) ]
p = pointer(X)
@test unsafe_load(p) == FooBar(3,1)
@test unsafe_load(p, 2) == FooBar(4,4)
unsafe_store!(p, FooBar(8,4))
@test X[1] == FooBar(8,4)
unsafe_store!(p, FooBar(7,3), 1)
@test X[1] == FooBar(7,3)
@test unsafe_load(p) == FooBar2515(3,1)
@test unsafe_load(p, 2) == FooBar2515(4,4)
unsafe_store!(p, FooBar2515(8,4))
@test X[1] == FooBar2515(8,4)
unsafe_store!(p, FooBar2515(7,3), 1)
@test X[1] == FooBar2515(7,3)
end

# issue #1287, combinations of try, catch, return
Expand Down

0 comments on commit 31887cb

Please sign in to comment.