1 // { dg-options "-std=c++0x" }
4 using global_vector_type __attribute__((vector_size(16))) = float;
6 template <class T> struct A
11 template < typename Val > struct S
13 using vector_type __attribute__((vector_size(16))) =
15 typedef Val vector_type2 __attribute__((vector_size(16)));
16 int pr_size() { return sizeof(vector_type); }
17 int pr_size2() { return sizeof(vector_type2); }
22 if (sizeof (S<float>::vector_type) != sizeof (global_vector_type))
24 if (sizeof (S<float>::vector_type2) != sizeof (global_vector_type))
28 if (x.pr_size() != sizeof (global_vector_type))
30 if (x.pr_size2() != sizeof (global_vector_type))