Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
tm
/
pr80059-2.C
blob: 10edb3a6de59d3ede7eb9219848024083ada4e1a [
file
] [
log
] [
blame
]
// PR c++/80059
// { dg-do compile { target c++11 } }
// { dg-options "-fgnu-tm" }
template
<
typename
T
>
int
foo
(
T b
)
{
return
__transaction_atomic noexcept
(
b
)
(
0
);
// { dg-error "is not a constant expression" }
}
void
bar
()
{
foo
(
true
);
}