diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/tm/irrevocable-4.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/tm/irrevocable-4.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/tm/irrevocable-4.c b/gcc/testsuite/gcc.dg/tm/irrevocable-4.c new file mode 100644 index 00000000000..ee759b84ef0 --- /dev/null +++ b/gcc/testsuite/gcc.dg/tm/irrevocable-4.c @@ -0,0 +1,16 @@ +/* { dg-do compile } */ +/* { dg-options "-fgnu-tm -fdump-tree-tmmark" } */ + +void orig(void); +void xyz(void) __attribute__((transaction_wrap (orig))); + + +foo() +{ + __transaction_relaxed { + orig(); + } +} + +/* { dg-final { scan-tree-dump-times "GTMA_MAY_ENTER_IRREVOCABLE" 1 "tmmark" } } */ +/* { dg-final { cleanup-tree-dump "tmmark" } } */ |