comparison gcc/testsuite/c-c++-common/tm/trxn-expr-3.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
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" } } */