* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / tm / attrib-4.C
blobb589b9d41a2631758774a400c85b964b295bcdf5
1 // { dg-do compile }
2 // { dg-options "-fgnu-tm" }
4 #define __ts    __attribute__((transaction_safe))
5 #define __tc    __attribute__((transaction_callable))
6 #define __tp    __attribute__((transaction_pure))
7 #define __tu    __attribute__((transaction_unsafe))
9 struct __ts A
11   virtual void f();
12   virtual void g();
15 struct __tc B : public A
17   void f() __tc;  // { dg-error ".transaction_callable. overriding .transaction_safe." }
18   void g();
19   virtual void h();
22 struct C : public B
24   void g() __tc;  // { dg-error ".transaction_callable. overriding .transaction_safe." }
27 struct C2 : public B
29   void g() __ts;
30   void h() __tu;  // { dg-error ".transaction_unsafe. overriding .transaction_callable." }
33 struct D
35   virtual void f() __tp;
36   virtual void g() __tp;
39 struct E : public D
41   void f() __ts;  // { dg-error ".transaction_safe. overriding .transaction_pure." }
42   void g();
45 struct F : public E
47   void g() __ts;  // { dg-error ".transaction_safe. overriding .transaction_pure." }