c++: robustify testcase [PR109752]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / var-templ36.C
blob760e36fca44aaedc69d8be037f69b5403b9e49db
1 // { dg-do compile { target c++14 } }
3 template <class T>
4 constexpr T v = T();
6 template <class T>
7 constexpr T v<T*> = T();
9 template <class T>
10 struct A {
11   static constexpr decltype (v<T>) v = ::v<T>;
14 double d1 = v<double*>;
15 double d2 = A<double*>::v;