aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/warn/Wredundant-decls-spec.C
blob: 3a9b019b67569864fade9c73b3e88dcf17837d48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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-message "previous declaration" }
template<> void S<double>::foo();  // { dg-warning "redundant redeclaration" }