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) {}
};
}