1 // A template declared with auto should be declared with auto in an
2 // explicit instantiation or explicit specialization, too.
3 // { dg-do compile { target c++14 } }
6 auto f(T t) { return t; }
8 template<> auto f<int>(int);
9 template auto f<float>(float);
10 template<> auto f(int*);
11 template auto f(float*);
13 template<> short f<short>(short); // { dg-error "does not match" }
14 template char f<char>(char); // { dg-error "does not match" }
15 template<> short f(short*); // { dg-error "does not match" }
16 template char f(char*); // { dg-error "does not match" }