☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
tm
/
pr56419.C
☽
☼
gcc/testsuite/g++.dg/tm/pr56419.C
code
plain
raw
1
// { dg-do compile }
2
// { dg-options "-fgnu-tm" }
3
4
int x = 0;
5
int inc_func(int i) {
6
for (int j = 0; j < i; ++j)
7
{
8
__transaction_atomic { x+=1; }
9
}
10
return 0;
11
}
12
13
// { dg-final { scan-assembler "ITM_commitTransaction" } }