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