Skip to content

Commit

Permalink
Add test for #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 committed Aug 16, 2016
1 parent ebd24a8 commit a5fdd74
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 a5fdd74

Please sign in to comment.