Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.pt/explicit36.C

raw
1 // { dg-do link }
2 // GROUPS passed templates
3 template <class T>
4 void foo(T);
5
6 class S {
7 friend void foo<>(int);
8
9 int i;
10 };
11
12
13 template <>
14 void foo(int)
15 {
16 S s;
17 s.i = 3;
18 }
19
20
21 int main()
22 {
23 foo(3);
24 }