* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / opt / pr71643.C
blob8369c6862ab9dcba652d169ba874ad568fc63c6c
1 // PR tree-optimization/71643
2 // { dg-do compile }
3 // { dg-options "-O2" }
5 struct A
7   void *operator new (__SIZE_TYPE__, double);
8   void operator delete (void *, double) { __builtin_unreachable (); }
9   A (int x);
10   static A *bar (int x) { return new (3.0) A (x); }
12 void baz (A *, A *);
14 void
15 foo (int a, int b)
17   A *p = A::bar (a);
18   A *q = A::bar (b);
19   baz (p, q);