Debian Codegraph @

gcc/testsuite/gcc.dg/tm/irrevocable-3.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-fgnu-tm -fdump-tree-tmmark" } */
3
4 extern void bar(void) __attribute__((transaction_callable));
5
6 void
7 foo()
8 {
9 __transaction_relaxed {
10 bar();
11 }
12 }
13
14 /* { dg-final { scan-tree-dump-times "doesGoIrrevocable" 1 "tmmark" } } */