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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [tm/] [asm-1.c] - Rev 774

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

// { dg-do compile }
// { dg-options "-fgnu-tm -O1" }
 
template<class T> class shared_ptr {
public:
    shared_ptr()  {
      __asm__ ("");
    }
};
template<typename _Tp> class deque {
public:
    void push_back() {
      ::new _Tp();
    }
};
class Bar {
  __attribute__((transaction_callable)) void push();
  deque<shared_ptr<int> > events;
};
void Bar::push() {
  events.push_back();
}
 

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.