☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
constexpr-if28.C
☽
☼
gcc/testsuite/g++.dg/cpp1z/constexpr-if28.C
code
plain
raw
1
// PR c++/89576
2
// { dg-do compile { target c++17 } }
3
4
template <class T>
5
void foo()
6
{
7
constexpr int x = 0;
8
[&] {
9
if constexpr (x) {}
10
};
11
}