Skip to content

Commit

Permalink
fix whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
oscardssmith committed Dec 5, 2024
1 parent 3a97501 commit 05dfceb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/arrayops.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3324,14 +3324,14 @@ end
end
@test f() === 4.0
function confuse_alias_analysis()
mem0 = Memory{Int}(undef, 1)
mem1 = Memory{Int}(undef, 1)
@inbounds mem0[1] = 3
for width in 1:2
@inbounds mem1[1] = mem0[1]
mem0 = mem1
end
mem0[1]
mem0 = Memory{Int}(undef, 1)
mem1 = Memory{Int}(undef, 1)
@inbounds mem0[1] = 3
for width in 1:2
@inbounds mem1[1] = mem0[1]
mem0 = mem1
end
mem0[1]
end
@test confuse_alias_analysis() == 3
@test_broken (@allocated confuse_alias_analysis()) == 0
Expand Down

0 comments on commit 05dfceb

Please sign in to comment.