aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp1y/pr60627.C
blob: 9e2116e9cb5b970d8cee7521c2bdd885e719912d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/60627
// { dg-do compile { target c++1y } }
// { dg-options "" }

template<typename T> void foo(T) {}

template void foo(auto);  // { dg-error "auto|does not match" }

void bar()
{
  foo(0);
}