1/* { dg-do compile } */ 2/* { dg-options "-fgnu-tm -O -fdump-tree-optimized" } */ 3 4int jj; 5 6__attribute__((transaction_safe)) 7static void poof () 8{ 9 if (jj) 10 return; 11 poof(); 12} 13 14__attribute__((transaction_safe)) 15void TMlist_free () 16{ 17 poof(); 18} 19 20/* { dg-final { scan-tree-dump-times "Function poof ._ZGTt4poof" 1 "optimized" } } */ 21/* { dg-final { cleanup-tree-dump "optimized" } } */ 22