* g++.dg/*.C: Use target c++17 instead of explicit dg-options. * lib/g++-dg.exp: Don't test C++11 by default. Add C++17 to the list of default stds to test. From-SVN: r265343
17 lines
300 B
C
17 lines
300 B
C
// PR c++/82022
|
|
// { dg-do compile { target c++17 } }
|
|
|
|
template <class T>
|
|
void f2()
|
|
{
|
|
constexpr bool r = []() constexpr { return false; }();
|
|
if constexpr (r);
|
|
if constexpr ([]() constexpr { return false; }());
|
|
}
|
|
|
|
int main()
|
|
{
|
|
if constexpr ([]() constexpr { return false; }());
|
|
f2<int>();
|
|
}
|