2013-10-21 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / tm / props-4.c
blobc34f5e619e391164ad920f9b796578f7bf1a1bb3
1 /* { dg-do compile } */
2 /* { dg-options "-fgnu-tm -fdump-tree-tmedge -fdump-tree-tmmark" } */
4 int a, b;
6 void __attribute((transaction_may_cancel_outer,noinline)) cancel1()
8 __transaction_cancel [[outer]];
11 void
12 foo(void)
14 __transaction_atomic [[outer]] {
15 a = 2;
16 __transaction_atomic {
17 b = 2;
18 cancel1();
23 /* { dg-final { scan-tree-dump-times " instrumentedCode" 1 "tmedge" } } */
24 /* { dg-final { scan-tree-dump-times "hasNoAbort" 0 "tmedge" } } */
25 /* { dg-final { cleanup-tree-dump "tmedge" } } */
26 /* { dg-final { cleanup-tree-dump "tmmark" } } */