* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / decltype-54581.C
blob63227303225b8189b5c77dabefb4372e2f1d85a1
1 /* { dg-do compile { target c++11 } } */
2 /* { dg-options "-Wall -Wno-tautological-compare" } */
4 typedef float v4f __attribute__((vector_size(4*sizeof(float))));
6 template <class T> void eat (T&&) {}
8 void test1 ()
10   v4f x = {0,1,2,3};
11   typedef decltype (x < x) v4i;
12   v4i y = {4,5,6,7}; // v4i is not opaque
13   eat (y);
16 template<class V>
17 void test2 ()
19   V x = {0,1,2,3};
20   typedef decltype (x < x) v4i;
21   v4i y = {4,5,6,7}; // v4i is not opaque
22   eat (y);
25 int main(){
26   test1();
27   test2<v4f>();