PR c++/56973, DR 696 - capture constant variables only as needed.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / var-templ14.C
blobc3c50d1266c5848f855b5ecff3f0d8d19612155f
1 // PR c++/63528
2 // { dg-do compile { target c++14 } }
4 template<class...>
5 struct X
7   constexpr static bool value = true;
8 };
10 static_assert(X<int>::value, "");
12 template <class... Args>
13 constexpr bool X_v = X<Args...>::value;
15 static_assert(X_v<int>, "");