// { dg-do compile { target c++11 } } // Test overload of pointer versus bool when applied on a nullptr_t template struct tType_equal; template struct tType_equal { typedef void type; }; template inline typename tType_equal::type type_equal(U) { } char* j( char* ); bool j( bool ); void test_j() { type_equal(j(nullptr)); decltype(nullptr) mynull = 0; type_equal(j(mynull)); }