* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / new5.C
blobfbb91e87f69ac2053cd667cec41336e5041f9653
1 // { dg-do run  }
2 // Test that const-correctness is observed when using new.
4 struct A {
5   A() { }
6   int f () { return 1; }
7   int f () const { return 0; }
8 };
10 int main ()
12   return (new const A)->f ();