* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / temp_default1.C
blob33f6c9eb398daad11abb3244f8586c275877ecae
1 // { dg-do compile { target c++11 } }
3 template<typename T, typename U>
4 struct is_same
6   static const bool value = false;
7 };
9 template<typename T>
10 struct is_same<T, T> {
11   static const bool value = true;
14 template<typename T = int> void f()
16   static_assert(is_same<T, int>::value, 
17                 "T can only be instantiated with an int");
20 template<typename T = int, typename U>
21 void f(U)
23   static_assert(is_same<T, int>::value, 
24                 "T can only be instantiated with an int");
27 void g()
29   float pi = 3.14159;
30   f();
31   f(pi);