comparison gcc/testsuite/c-c++-common/tm/trxn-expr-2.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* { dg-do compile } */
2 /* Make sure that we don't just crash without -fgnu-tm enabled. */
3 /* { dg-options "" } */
4
5 int x;
6
7 int foo(void)
8 {
9 return __transaction_atomic (x + 1); /* { dg-error "" } */
10 }
11
12 int bar(void)
13 {
14 return __transaction_relaxed (x + 1); /* { dg-error "" } */
15 }