Skip to content

Commit

Permalink
Add test to check if LLVM and Julia agree on alignment.
Browse files Browse the repository at this point in the history
  • Loading branch information
Arch D. Robison committed Apr 6, 2016
1 parent d6ff149 commit c765cfd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/vecelement.jl
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,14 @@ end
check(Herd{1,Int}((1,)))
check(Herd{2,Int}((4,5)))
check(Herd{4,Int}((16,17,18,19)))

immutable Gr{N, T}
u::T
v::Bunch{N,T}
w::T
end

a = Vector{Gr{2,Float64}}(2)
a[2] = Gr(1.0, Bunch((VecElement(2.0), VecElement(3.0))), 4.0)
a[1] = Gr(5.0, Bunch((VecElement(6.0), VecElement(7.0))), 8.0)
@test a[2] == Gr(1.0, Bunch((VecElement(2.0), VecElement(3.0))), 4.0)

0 comments on commit c765cfd

Please sign in to comment.