Skip to content

Commit

Permalink
Enable "B" boundscheck tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
blakejohnson committed Jan 14, 2016
1 parent e2f8842 commit 9eb248c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/boundscheck.jl
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@ function B1()
return 0
end

@test B1() == 0

# elide a simple branch
cond(x) = x > 0 ? x : -x

function B2()
y = [1,2,3]
@inbounds begin
Expand All @@ -103,4 +107,6 @@ function B2()
return 0
end

@test B2() == 0

end

0 comments on commit 9eb248c

Please sign in to comment.