1 /* { dg-do compile } */
2 /* { dg-options "-fgnu-tm -O -fdump-tree-tmmark" } */
3 
4 /* Test that the call to george() doesn't end up inside the transaction.  */
5 
6 int trxn;
7 
set_remove(int * val)8 void set_remove(int * val)
9 {
10   __transaction_atomic {
11       trxn = 5;
12   }
13   george();
14 }
15 
16 /* { dg-final { scan-tree-dump-times "getTMCloneOrIrrevocable" 0 "tmmark" } } */
17 /* { dg-final { cleanup-tree-dump "tmmark" } } */
18