1 // Test for a diagnostic about a usual deallocation function used as a
2 // placement deallocation function. This will be a warning in C++98/11
3 // modes and an error in C++14 mode.
5 // { dg-options "-Wc++14-compat" }
8 void *operator new (std::size_t s, std::size_t)
10 return operator new (s);
13 void operator delete (void *p, std::size_t) throw()
15 return ::operator delete (p);
25 new (42) A; // { dg-message "" }