Skip to content

Commit

Permalink
add test cases for #48566 (#48584)
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk authored Feb 8, 2023
1 parent e3dfcc3 commit 3a92d38
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/compiler/effects.jl
Original file line number Diff line number Diff line change
Expand Up @@ -759,6 +759,10 @@ end
@test Base.ismutationfree(Type{Union{}})
@test Core.Compiler.is_total(Base.infer_effects(typejoin, ()))

# nothrow-ness of subtyping operations
# https://github.com/JuliaLang/julia/pull/48566
@test !Core.Compiler.is_nothrow(Base.infer_effects((A,B)->A<:B, (Any,Any)))
@test !Core.Compiler.is_nothrow(Base.infer_effects((A,B)->A>:B, (Any,Any)))

# GotoIfNot should properly mark itself as throwing when given a non-Bool
# https://github.com/JuliaLang/julia/pull/48583
Expand Down

0 comments on commit 3a92d38

Please sign in to comment.