Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
tm
/
lambda1.C
blob: d0cffbff22fba0d9baa3f51a9ffdb65452837bee [
file
] [
log
] [
blame
]
// Test for lambda conversion.
// { dg-options "-fgnu-tm -std=c++14" }
void
f
(
bool
b
)
{
void
(*
p
)()
transaction_safe
;
p
=
[]()
transaction_safe
{};
p
=
[]{};
// { dg-error "transaction_safe" }
}