* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / init / new13.C
blob5a87b7ce7d2118ae196538d93cc0fa863521bbbf
1 // PR c++/22508
2 // ICE on invalid operator new
3 // Origin: Flash Sheridan  <flash@pobox.com>
4 // { dg-do compile }
6 struct A
8   void* operator new(__SIZE_TYPE__) throw(X);  // { dg-error "expected|type" }
9 };                                             // { dg-error "dynamic exception specification" "" { target c++17 } .-1 }
10                                                // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } .-2 }
11 A* p = new A;