PR c++/60417
[official-gcc.git] / gcc / testsuite / g++.dg / tm / asm-1.c
blob3c8ebd2f6943f10d101b7c2a4751a48cd826ad5b
1 // { dg-do compile }
2 // { dg-options "-fgnu-tm -O1" }
4 template<class T> class shared_ptr {
5 public:
6 shared_ptr() {
7 __asm__ ("");
9 };
10 template<typename _Tp> class deque {
11 public:
12 void push_back() {
13 ::new _Tp();
16 class Bar {
17 __attribute__((transaction_callable)) void push();
18 deque<shared_ptr<int> > events;
20 void Bar::push() {
21 events.push_back();