Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
tm
/
lambda2.C
blob: 82e509e3658175cef9efc3b2f0b557d3e8817397 [
file
] [
log
] [
blame
]
// Test for lambda call.
// { dg-options "-fgnu-tm -std=c++14" }
void
unsafe
();
void
f
()
transaction_safe
{
[]{}();
// OK, implicitly transaction-safe.
[]{
unsafe
();}();
// { dg-error "unsafe" }
}