1 // { dg-do compile { target c++11 } } 2 3 // Test assignment to method pointer 4 5 class F { }; 6 7 typedef void (F::*pmf)(); 8 9 const pmf pmf1 = nullptr; 10 const pmf pmf2 = __null; 11 const pmf pmf3 = 0; 12 decltype(nullptr) mynull = 0; 13 const pmf pmf4 = mynull; 14