Skip to content

Commit

Permalink
Add test for issue 10221
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy committed Feb 24, 2015
1 parent f52af3e commit 8744f28
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/core.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2182,3 +2182,19 @@ const N10281 = 1000
for i in 1:N10281
end
end === nothing

# issue #10221
module GCbrokentype
OLD_STDOUT = STDOUT
file = open(tempname(), "w")
redirect_stdout(file)
versioninfo()
try
type Foo{T}
val::Bar{T}
end
end
gc()
redirect_stdout(OLD_STDOUT)
close(file)
end

0 comments on commit 8744f28

Please sign in to comment.