Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
tm
/
pr56419.C
blob: c9a33a81319808c7d5bb51586e0dce05b22597e8 [
file
] [
log
] [
blame
]
// { dg-do compile }
// { dg-options "-fgnu-tm" }
int
x
=
0
;
int
inc_func
(
int
i
)
{
for
(
int
j
=
0
;
j
<
i
;
++
j
)
{
__transaction_atomic
{
x
+=
1
;
}
}
return
0
;
}
// { dg-final { scan-assembler "ITM_commitTransaction" } }