* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / nullptr18.C
blob17dd62c84cc1d743524af91c3805c690b15a8bcb
1 // { dg-do compile { target c++11 } }
3 // Test overload of pointer versus bool when applied on a nullptr_t
5 template <typename T, typename U> struct tType_equal;
6 template <typename T> struct tType_equal<T, T> { typedef void type; };
8 template <typename T, typename U>
9 inline typename tType_equal<T, U>::type
10 type_equal(U) { }
12 char* j( char* );
13 bool j(  bool );
15 void test_j()
17   type_equal<char*>(j(nullptr));
18   decltype(nullptr) mynull = 0;
19   type_equal<char*>(j(mynull));