repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/60417
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
tm
/
asm-1.c
blob
3c8ebd2f6943f10d101b7c2a4751a48cd826ad5b
1
// { 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
}