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" }
}