libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tm / props-5.c
blobb358f9e288dcdcbe78b83102f6e0d36908416301
1 /* This is a copy of props-4.c but with variations in the attribute
2 syntax. */
3 /* { dg-do compile } */
4 /* { dg-options "-fgnu-tm -fdump-tree-tmedge -fdump-tree-tmmark" } */
6 int a, b;
8 void __attribute((transaction_may_cancel_outer,noinline)) cancel1()
10 __transaction_cancel [[,,,outer,,]];
13 void
14 foo(void)
16 __transaction_atomic [[__gnu__::__outer__]] {
17 a = 2;
18 __transaction_atomic {
19 b = 2;
20 cancel1();
25 /* { dg-final { scan-tree-dump-times " instrumentedCode" 1 "tmedge" } } */
26 /* { dg-final { scan-tree-dump-times "hasNoAbort" 0 "tmedge" } } */