URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tm/] [nested-1.c] - Rev 689
Compare with Previous | Blame | View Log
/* { dg-do compile } */ /* { dg-options "-fgnu-tm" } */ extern int foo(int) __attribute__((transaction_safe)); void bar(void) { __transaction_atomic { if (foo(1)) __transaction_atomic { if (foo(2)) __transaction_atomic { if (foo(3)) __transaction_atomic { if (foo(4)) foo(5); else __transaction_cancel; } else __transaction_cancel; } else __transaction_cancel; } else __transaction_cancel; } }