2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1z / constexpr-if24.C
blob8e6034c4dfc7cd5f1651a988fed5f983e948b7d5
1 // PR c++/86480
2 // { dg-do compile { target c++17 } }
4 template <class...> constexpr bool val = true;
6 template <class... T>
7 void f()
9   [](auto... p)
10     {
11       []{
12         if constexpr (val<T..., decltype(p)...>) { return true; }
13         return false;
14       }();
15     }(42);
18 int main()
20   f<int>();