1 /* { dg-do compile } */
2 /* { dg-options "-fgnu-tm -O2 -fdump-tree-lim1" } */
4 /* Test that `count' is not written to unless p->data>0. */
16 __transaction_atomic
{
17 for (p
= q
; p
; p
= p
->next
)
23 /* { dg-final { scan-tree-dump-times "Cannot hoist conditional load of count because it is in a transaction" 1 "lim1" } } */
24 /* { dg-final { cleanup-tree-dump "lim1" } } */