/cp
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / var-templ20.C
blob38bd3705d115672da9e65362dc1d85a81ef15171
1 // { dg-do compile { target c++14 } }
3 template <bool> struct Sink {};
4 template <class T> void fn();
5 template <class T> T var = T();
7 template <class T> void f()
9   Sink<fn<T>::value>();         // { dg-error "function" }
10   Sink<var<T>::value>();        // { dg-error "variable" }
12 // { dg-prune-output "template argument" }