☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
concepts
/
auto7.C
☽
☼
gcc/testsuite/g++.dg/concepts/auto7.C
code
plain
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
}