* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / variadic27.C
blobd690bb9667c8faeb969d4343d1622032f63aa6d7
1 // { dg-do compile { target c++11 } }
2 template<typename Signature>
3 struct function_traits;
5 template<typename R, typename... ArgTypes>
6 struct function_traits<R(ArgTypes...)> {
7   typedef R result_type;
8 };
10 template<typename T, typename U>
11 struct same_type {
12   static const bool value = false;
15 template<typename T>
16 struct same_type<T, T> {
17   static const bool value = true;
20 int a0[same_type<function_traits<int()>::result_type, int>::value? 1 : -1];
21 int a1[same_type<function_traits<int(float)>::result_type, int>::value? 1 : -1];
22 int a2[same_type<function_traits<int(double, char)>::result_type, int>::value? 1 : -1];