1 // { dg-do compile { target c++11 } } 2 3 4 // Test overload of pointer versus nullptr_t when applied on a literal 0/__null 5 6 typedef decltype(nullptr) nullptr_t; 7 8 char* k( char* ); /* { dg-message "note" } */ 9 nullptr_t k( nullptr_t ); /* { dg-message "note" } */ 10 test_k()11void test_k() 12 { 13 k(0); /* { dg-error "is ambiguous" } */ 14 k(__null); /* { dg-error "is ambiguous" } */ 15 } 16