blob: b5c790f474bfcf3c202d5acd799586d9243bac7e [file] [log] [blame]
// 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" }