1 // { dg-do compile { target c++11 } } 2 3 typedef long vec __attribute__((vector_size(2*sizeof(long)))); 4 constexpr vec v = { 33, 42 }; 5 constexpr auto l0 = v[0]; 6 constexpr auto l1 = v[1]; 7 static_assert(l0==33,"Fail"); 8 static_assert(l1==42,"Fail"); 9