Skip to content

Commit

Permalink
Add a test.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Apr 12, 2019
1 parent 8469856 commit d02b01e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/reflection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -870,3 +870,15 @@ function _test_at_locals2(a::Any, ::Any)
@test @locals() == Dict{Symbol,Any}(:x=>2,:a=>a)
end
_test_at_locals2(1,1)

@testset "issue #31687" begin
import InteractiveUtils._dump_function

@noinline f31687_child(i) = f31687_nonexistent(i)
f31687_parent() = f31687_child(0)
params = Base.CodegenParams(cached=false)
_dump_function(f31687_parent, Tuple{},
#=native=#false, #=wrapper=#false, #=strip=#false,
#=dump_module=#true, #=syntax=#:att, #=optimize=#false, :none,
params)
end

0 comments on commit d02b01e

Please sign in to comment.