Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/tm/unsafe2.C @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 84e7813d76e9 |
line wrap: on
line source
// Transaction-unsafe testcase from TM TS. // { dg-options -fgnu-tm } template<class T> void f(T) transaction_safe; template<> void f(bool); // not transaction-safe int g() transaction_safe { f(42); // OK f(true); // { dg-error "unsafe" } }