aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/c-c++-common/tm/wrap-1.c
blob: 04b5b6f0dcbc696675e907db9e83019cd31e98dc (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */
/* { dg-options "-fgnu-tm -fdump-tree-optimized" } */

void orig(void);
void xyzzy(void) __attribute__((transaction_wrap (orig)));

void foo() { __transaction_relaxed { orig (); } }

/* { dg-final { scan-tree-dump-times "xyzzy" 1 "optimized" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */