1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/* { dg-do compile } */ /* { dg-options "-fgnu-tm" } */ int t, v; int foo (void) { while (1) { __transaction_atomic { v++; } if (t) return 0; } }