summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/friend47.C
blob: 612173950a7eaccf2736c01b2ec841df2f33ac83 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/19809

template<int i>
struct n{
  friend void foo(){ }		// { dg-error "defin" }
};

int main(){
  n<1> n1;
  n<2> n2;
}