view gcc/testsuite/gcc.dg/tm/20100603.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900 (2017-10-27)
parents
children
line wrap: on
line source
/* { dg-do compile } */
/* { dg-options "-fgnu-tm -O -fdump-tree-optimized" } */

int jj;

__attribute__((transaction_safe))
static void poof ()
{
  if (jj)
    return;
   poof();
}

__attribute__((transaction_safe))
void TMlist_free ()
{
    poof();
}

/* { dg-final { scan-tree-dump-times "Function poof ._ZGTt4poof" 1 "optimized" } } */