Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
tm
/
opt-1.C
blob: 8dd41a5bfe8384e8454429ce678649408b44e3f2 [
file
] [
log
] [
blame
]
// { dg-do compile }
// { dg-options "-fgnu-tm -O" }
struct
S
{
virtual
void
f
()
__attribute__
((
transaction_safe
));
};
void
f
(
S
*
s
)
{
__transaction_atomic
{
s
->
f
();
}
}