Debian Codegraph @

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

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