comparison gcc/testsuite/gcc.dg/tm/nested-2.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* { dg-do compile } */
2 /* { dg-options "-fgnu-tm" } */
3 /* { dg-add-options bind_pic_locally } */
4
5 void foobar(void)
6 {
7 __transaction_atomic {
8 foobar();
9 }
10 }
11
12 void doit(void) __attribute__((transaction_safe));
13
14 __attribute__((transaction_callable))
15 void callable(void)
16 {
17 __transaction_atomic {
18 doit();
19 }
20 }