summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/inject2.C
blob: 3437ab15e4823109d1209cbd088c19713f33373c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do assemble  }
// { dg-options "-Wno-non-template-friend" }
// Origin: Mark Mitchell <mark@codesourcery.com>

template<int I>
class C {
    friend void f(struct X *);
};

template class C<0>;

class D {
    friend void f(struct X*);
};