1 /* { dg-do compile } */
2 /* { dg-options "-fgnu-tm" } */
7 void foo(volatile int x)
10 x = 5; /* { dg-error "invalid volatile use of 'x' inside transaction" } */
22 __transaction_atomic {
23 if (i == 2) /* { dg-error "invalid volatile use of 'i' inside transaction" } */