aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/c-c++-common/tm/trxn-expr.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/c-c++-common/tm/trxn-expr.c')
-rw-r--r--gcc-4.9/gcc/testsuite/c-c++-common/tm/trxn-expr.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/c-c++-common/tm/trxn-expr.c b/gcc-4.9/gcc/testsuite/c-c++-common/tm/trxn-expr.c
new file mode 100644
index 000000000..53d4677e3
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/c-c++-common/tm/trxn-expr.c
@@ -0,0 +1,13 @@
+/* { dg-do compile } */
+/* { dg-options "-fgnu-tm -fdump-tree-tmmark" } */
+
+int y, x, york;
+
+void foobar(void)
+{
+ x = y + __transaction_atomic (york);
+}
+
+/* { dg-final { scan-tree-dump-times "_ITM_RU.*york" 1 "tmmark" } } */
+/* { dg-final { scan-tree-dump-times "_ITM_RU" 1 "tmmark" } } */
+/* { dg-final { cleanup-tree-dump "tmmark" } } */