Debian Codegraph @

gcc/testsuite/c-c++-common/tm/trxn-expr-3.c

raw
1 // { dg-do compile }
2 // { dg-options "-fgnu-tm -O -fdump-tree-tmmark" }
3
4 int global;
5
6 int f2()
7 {
8 return __transaction_atomic (global + 3)
9 + __transaction_atomic (global + 4);
10 }
11
12 /* { dg-final { scan-tree-dump-times "ITM_RU" 2 "tmmark" } } */
13 /* { dg-final { scan-tree-dump-times "ITM_commitTransaction" 4 "tmmark" } } */