Skip to content

Commit

Permalink
fix test for code-coverage configuration
Browse files Browse the repository at this point in the history
with --code-coverage, jlcall_api is disabled, altering the AST that gets stored for this function
  • Loading branch information
vtjnash committed Apr 12, 2017
1 parent e9a453f commit 7c16897
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/inline.jl
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ end
@inline Base.getindex(v::s21074, i::Integer) = v.x[i]
@eval f21074() = $(s21074((1,2))).x[1]
let (src, _) = code_typed(f21074, ())[1]
@test src.code[1] == Expr(:return, 1)
@test src.code[end] == Expr(:return, 1)
end
@eval g21074() = $(s21074((1,2)))[1]
let (src, _) = code_typed(g21074, ())[1]
@test src.code[1] == Expr(:return, 1)
@test src.code[end] == Expr(:return, 1)
end

# issue #21311
Expand Down

0 comments on commit 7c16897

Please sign in to comment.