From d02b01e0629ee54ec849506e1618d24936b88c7e Mon Sep 17 00:00:00 2001 From: Tim Besard Date: Fri, 12 Apr 2019 13:40:14 +0200 Subject: [PATCH] Add a test. --- test/reflection.jl | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/reflection.jl b/test/reflection.jl index 92b68181b83be..f516192a4ff05 100644 --- a/test/reflection.jl +++ b/test/reflection.jl @@ -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