Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
constexpr-if28.C
blob: 8bfde6c1bdb5985a29d79b94f0ac536c037bf7d8 [
file
] [
log
] [
blame
]
// PR c++/89576
// { dg-do compile { target c++17 } }
template
<
class
T
>
void
foo
()
{
constexpr
int
x
=
0
;
[&]
{
if
constexpr
(
x
)
{}
};
}