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] - Blame information for rev 715

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 -O1" }
3
 
4
template<class T> class shared_ptr {
5
public:
6
    shared_ptr()  {
7
      __asm__ ("");
8
    }
9
};
10
template<typename _Tp> class deque {
11
public:
12
    void push_back() {
13
      ::new _Tp();
14
    }
15
};
16
class Bar {
17
  __attribute__((transaction_callable)) void push();
18
  deque<shared_ptr<int> > events;
19
};
20
void Bar::push() {
21
  events.push_back();
22
}

powered by: WebSVN 2.1.0

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