Debian Codegraph @

gcc/testsuite/g++.dg/tm/alias.C

raw
1 // { dg-do compile }
2 // { dg-options "-fgnu-tm -O0" }
3
4 /* Test that we generate transactional clones for both the base and
5 the complete dtor for class Itemset. */
6
7 class Itemset {
8 public:
9 __attribute__((transaction_safe)) ~Itemset();
10 __attribute__((transaction_safe)) void operator delete(void *);
11 private:
12 };
13
14 __attribute__((transaction_safe))
15 Itemset::~Itemset()
16 {
17 }
18
19 // { dg-final { scan-assembler "_ZGTtN7ItemsetD1Ev" } }
20 // { dg-final { scan-assembler "_ZGTtN7ItemsetD2Ev" } }