* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / decltype55.C
blob95427fc0018e6677a5e32a23d65b6fd3a5effda2
1 // PR c++/53211
2 // { dg-do compile { target c++11 } }
4 template<typename A, typename B>
5   struct is_same { static const bool value = false; };
7 template<typename A>
8   struct is_same<A, A> { static const bool value = true; };
10 template<typename... Args>
11 void func(Args... args)
13   int arr[] = { args... };
14   static_assert (is_same<decltype(arr), int[sizeof...(Args)]>::value, "");
17 int main()
19   func(1, 2, 3, 4);