aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/tm/alias.C
blob: 4459c703bdc0cc6697493acb42c1f25c6d1e9f21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// { dg-do compile }
// { dg-options "-fgnu-tm -O0" }

/* Test that we generate transactional clones for both the base and
   the complete dtor for class Itemset.  */

class Itemset {
public:
   __attribute__((transaction_safe)) ~Itemset();
  __attribute__((transaction_safe)) void operator delete(void *);
private:
};

__attribute__((transaction_safe))
Itemset::~Itemset()
{
}

// { dg-final { scan-assembler "_ZGTtN7ItemsetD1Ev" } }
// { dg-final { scan-assembler "_ZGTtN7ItemsetD2Ev" } }