blob: 09fa9c1007ddd0db729182cc63360350844478a7 [file] [log] [blame]
// { dg-do compile { target c++11 } }
// { dg-options "-fgnu-tm -O -fdump-tree-tmmark" }
struct TrueFalse
{
};
int global;
template<typename T> int foo()
{
return __transaction_atomic (global + 2)
+ __transaction_atomic (global + 3);
}
int f1()
{
return foo<TrueFalse>();
}
/* { dg-final { scan-tree-dump-times "ITM_RU" 2 "tmmark" } } */