summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/redecl3.C
blob: 029f9e69a5fc1dc1e0cb7a933d17105b94496269 (plain)
1
2
3
4
5
6
7
// PR c++/19980
// Origin: Volker Reichelt <reichelt@igpm.rwth-aachen.de>

// { dg-do compile }

int foo;                    // { dg-error "previous declaration" }
template<int> void foo() {} // { dg-error "redeclared" }