2013-10-21 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / tm / 20100125.c
blob3f1dd10fea2c683952f0024a71dad3e2416e4ff5
1 /* { dg-do compile } */
2 /* { dg-options "-fgnu-tm -O -fdump-tree-tmmark" } */
4 /* Test that the call to george() doesn't end up inside the transaction. */
6 int trxn;
8 void set_remove(int * val)
10 __transaction_atomic {
11 trxn = 5;
13 george();
16 /* { dg-final { scan-tree-dump-times "getTMCloneOrIrrevocable" 0 "tmmark" } } */
17 /* { dg-final { cleanup-tree-dump "tmmark" } } */