Skip to content

Commit

Permalink
Revert "add tests for some stackoverflows that previously crashed julia"
Browse files Browse the repository at this point in the history
  • Loading branch information
tkelman authored Feb 5, 2017
1 parent dc9e683 commit 7f62074
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions test/misc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -619,21 +619,3 @@ let
x_defined = Ref{String}("Test")
@test isassigned(x_defined)
end

type Demo_20254
arr::Array{String}
end

function Demo_20254(arr::AbstractArray=Any[])
Demo_20254(string.(arr))
end

_unsafe_get_19433(x::NTuple{1}) = (unsafe_get(x[1]),)
_unsafe_get_19433(xs::Vararg) = (unsafe_get(xs[1]), _unsafe_get_19433(xs[2:end])...)

f_19433(f_19433, xs...) = f_19433(_unsafe_get_19433(xs)...)

@testset "test this does not crash, issue #19433 and #20254" begin
@test_throws StackOverflowError Demo_20254()
@test_throws StackOverflowError f_19433(+, 1, 2)
end

0 comments on commit 7f62074

Please sign in to comment.