Merge from mainline.
[official-gcc.git] / gcc / testsuite / g++.dg / template / redecl3.C
blob029f9e69a5fc1dc1e0cb7a933d17105b94496269
1 // PR c++/19980
2 // Origin: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
4 // { dg-do compile }
6 int foo;                    // { dg-error "previous declaration" }
7 template<int> void foo() {} // { dg-error "redeclared" }