* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / lookup / crash3.C
blob1b78dd607f3f4ad805f7c731eb023c76d9977c96
1 // { dg-do compile }
2 // Contributed by Wolfgang Wieser <wwieser at gmx dot de>
3 // PR c++/15967: ICE with ambiguous operator new
5 typedef __SIZE_TYPE__ size_t; 
7 struct A { void *operator new(size_t s){ return 0; } };  // { dg-message "operator new" }
8 struct B { void *operator new(size_t s){ return 0; } };  // { dg-message "operator new" }
10 struct C : A,B {}; 
12 void crash() 
14   C *c=new C();   // { dg-error "ambiguous" }