1 // Transaction-unsafe testcase from TM TS.
2 // { dg-options -fgnu-tm }
5 __attribute ((transaction_safe
))
7 int x
= 0; // ok: not volatile
8 p
= &x
; // ok: the pointer is not volatile
9 int i
= *p
; // { dg-error "volatile" "read through volatile glvalue" }