Skip to content

Commit

Permalink
Add test for JuliaLang#18054.
Browse files Browse the repository at this point in the history
Note that this test requires a memory sanitizer (ASAN, valgrind) to detect failure.
  • Loading branch information
maleadt authored and mfasi committed Sep 5, 2016
1 parent 3b55c99 commit d6470bc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/core.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4469,3 +4469,10 @@ let
k(x) = (k = x; k)
@test k(1) == 1
end

# PR #18054: compilation of cfunction leaves IRBuilder in bad state,
# causing heap-use-after-free when compiling f18054
function f18054()
return Cint(0)
end
cfunction(f18054, Cint, ())

0 comments on commit d6470bc

Please sign in to comment.