diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/c-c++-common/tm/wrap-1.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/c-c++-common/tm/wrap-1.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/c-c++-common/tm/wrap-1.c b/gcc-4.9/gcc/testsuite/c-c++-common/tm/wrap-1.c new file mode 100644 index 000000000..04b5b6f0d --- /dev/null +++ b/gcc-4.9/gcc/testsuite/c-c++-common/tm/wrap-1.c @@ -0,0 +1,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" } } */ |