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 7class Itemset { 8public: 9 __attribute__((transaction_safe)) ~Itemset(); 10 __attribute__((transaction_safe)) void operator delete(void *); 11private: 12}; 13 14__attribute__((transaction_safe)) 15Itemset::~Itemset() 16{ 17} 18 19// { dg-final { scan-assembler "_ZGTtN7ItemsetD1Ev" } } 20// { dg-final { scan-assembler "_ZGTtN7ItemsetD2Ev" } } 21