diff --git a/test/vecelement.jl b/test/vecelement.jl index 5106e46cc022a..c259fdcc72a31 100644 --- a/test/vecelement.jl +++ b/test/vecelement.jl @@ -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)