URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-dev/] [fsf-gcc-snapshot-1-mar-12/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [warn/] [Wredundant-decls-spec.C] - Rev 783
Compare with Previous | Blame | View Log
// PR c++/15867
// { dg-options -Wredundant-decls }
template <typename T> struct S
{
void foo() {}
};
template<> void S<int>::foo();
template<> void S<double>::foo(); // { dg-warning "previous declaration" }
template<> void S<double>::foo(); // { dg-warning "redundant redeclaration" }