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] - Rev 715

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

// { 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" } }

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

powered by: WebSVN 2.1.0

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