1 // { dg-do compile { target c++11 } } 2 3 // Test overload of pointer versus bool when applied on a nullptr_t 4 5 template <typename T, typename U> struct tType_equal; 6 template <typename T> struct tType_equal<T, T> { typedef void type; }; 7 8 template <typename T, typename U> 9 inline typename tType_equal<T, U>::type 10 type_equal(U) { } 11 12 char* j( char* ); 13 bool j( bool ); 14 15 void test_j() 16 { 17 type_equal<char*>(j(nullptr)); 18 decltype(nullptr) mynull = 0; 19 type_equal<char*>(j(mynull)); 20 } 21