Debian Codegraph @

gcc/testsuite/g++.dg/concepts/auto7a.C

raw
1 // { dg-do compile { target c++14 } }
2
3 template <class T> struct A { };
4 void f(A<auto> a) { } // { dg-error "auto. in template argument" }
5 int main()
6 {
7 f(A<int>());
8 }