Skip to content

Commit 74d9d7c

Browse files
committed
add more tests with binary +
1 parent a09e4b6 commit 74d9d7c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/no_invalidations.jl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,20 @@ end
6161
@test test_expr(n -> :(Base.UInt(::$n) = 0x0)) broken=true
6262
end
6363
@testset "arithmetic" begin
64+
@test test_expr(n -> :(Base.:(+)(::$n, m::Bool) = m))
65+
@test test_expr(n -> :(Base.:(+)(m::Bool, ::$n) = m))
66+
@test test_expr(n -> :(Base.:(+)(::$n, m::Int8) = m))
67+
@test test_expr(n -> :(Base.:(+)(m::Int8, ::$n) = m))
68+
@test test_expr(n -> :(Base.:(+)(::$n, m::UInt8) = m))
69+
@test test_expr(n -> :(Base.:(+)(m::UInt8, ::$n) = m))
70+
@test test_expr(n -> :(Base.:(+)(::$n, m::Int16) = m))
71+
@test test_expr(n -> :(Base.:(+)(m::Int16, ::$n) = m))
72+
@test test_expr(n -> :(Base.:(+)(::$n, m::UInt16) = m))
73+
@test test_expr(n -> :(Base.:(+)(m::UInt16, ::$n) = m))
6474
@test test_expr(n -> :(Base.:(+)(::$n, m::Int) = m))
6575
@test test_expr(n -> :(Base.:(+)(m::Int, ::$n) = m)) broken=true
76+
@test test_expr(n -> :(Base.:(+)(::$n, m::UInt) = m))
77+
@test test_expr(n -> :(Base.:(+)(m::UInt, ::$n) = m))
6678
end
6779
@testset "promotion" begin
6880
@test (

0 commit comments

Comments
 (0)