Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/tm/unsafe2.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
4 template<class T> | 4 template<class T> |
5 void f(T) transaction_safe; | 5 void f(T) transaction_safe; |
6 template<> | 6 template<> |
7 void f(bool); // not transaction-safe | 7 void f(bool); // not transaction-safe |
8 | 8 |
9 int g() transaction_safe | 9 void g() transaction_safe |
10 { | 10 { |
11 f(42); // OK | 11 f(42); // OK |
12 f(true); // { dg-error "unsafe" } | 12 f(true); // { dg-error "unsafe" } |
13 } | 13 } |