testsuite: Fix tail_call and musttail effective targets [PR116080]
[official-gcc.git] / gcc / testsuite / gcc.dg / tm / nested-1.c
blobafadb83c1833d8c52d432463213d15db6c293b5a
1 /* { dg-do compile } */
2 /* { dg-options "-fgnu-tm" } */
4 extern int foo(int) __attribute__((transaction_safe));
5 void bar(void)
7 __transaction_atomic {
8 if (foo(1))
9 __transaction_atomic {
10 if (foo(2))
11 __transaction_atomic {
12 if (foo(3))
13 __transaction_atomic {
14 if (foo(4))
15 foo(5);
16 else
17 __transaction_cancel;
19 else
20 __transaction_cancel;
22 else
23 __transaction_cancel;
25 else
26 __transaction_cancel;