summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/friend33.C
blob: f1b5cb26aa3b74db23767c794e29c0b7f88adbd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do compile }
// PR c++/18733: Validation of template headers in friends

template<int> struct A
{
  void foo();
};

struct B
{
  friend void A<0>::foo();
};