Skip to content

Commit

Permalink
Add test for JuliaLang#17096
Browse files Browse the repository at this point in the history
  • Loading branch information
ihnorton committed Jul 2, 2016
1 parent eb05662 commit 767ddc7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/reflection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,16 @@ test_code_reflections(test_ast_reflection, code_lowered)
test_code_reflections(test_ast_reflection, code_typed)
test_code_reflections(test_bin_reflection, code_llvm)
test_code_reflections(test_bin_reflection, code_native)

# Issue #16326
let OLDSTDOUT = STDOUT
redirect_stdout(open(tempname(),"w"))
@test try @code_native map(y->abs(y), rand(3)); true; catch false; end
redirect_stdout(OLDSTDOUT)
end

end # module ReflectionTest

# code_warntype
module WarnType
using Base.Test
Expand Down

0 comments on commit 767ddc7

Please sign in to comment.