Debian Codegraph @

gcc/testsuite/g++.dg/tm/pr56419.C

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" } }