OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [tm/] [alias.C] - Blame information for rev 709

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { 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" } }

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.