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" }