* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / tm / pr46941.C
blobeac5438313877f5a49a3a685365c7a8f510811a6
1 // { dg-do "compile" }
2 // { dg-options "-fgnu-tm" }
4 class Obj
6   int dummy;
7 };
9 __attribute__((transaction_safe))
10 Obj* allocate()
12   return new Obj;
15 __attribute__((transaction_safe))
16 void deallocate(Obj * o)
18   delete o;
21 __attribute__((transaction_safe))
22 Obj* allocatearray()
24   return new Obj[2];
27 __attribute__((transaction_safe))
28 void deallocatearray(Obj *o[])
30   delete [] o;
33 /* The delete/new operators are handled by the libitm runtime.  */
34 /* { dg-final { scan-assembler "_ZGTtnw\[mj\]" } } */
35 /* { dg-final { scan-assembler "_ZGTtna\[mj\]" } } */
36 /* { dg-final { scan-assembler "_ZGTtdlPv" } } */
37 /* { dg-final { scan-assembler "_ZGTtdaPv" } } */