We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53c7720 commit f34a3a8Copy full SHA for f34a3a8
test/core.jl
@@ -1019,20 +1019,20 @@ let
1019
@test_throws InexactError unsafe_wrap(Array, pointer(a), -3)
1020
end
1021
1022
-immutable FooBar
+immutable FooBar2515
1023
foo::Int
1024
bar::Int
1025
1026
let
1027
local X, p
1028
- X = FooBar[ FooBar(3,1), FooBar(4,4) ]
+ X = FooBar2515[ FooBar2515(3,1), FooBar2515(4,4) ]
1029
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)
+ @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)
1036
1037
1038
# issue #1287, combinations of try, catch, return
0 commit comments