Debian Codegraph @

gcc/testsuite/g++.dg/template/friend52.C

raw
1 // PR c++/50344
2 // { dg-options "" }
3
4 template <typename T> class C
5 {
6 friend T;
7 int i;
8 };
9
10 struct S
11 {
12 int f()
13 {
14 C<const S> c;
15 return c.i;
16 }
17 };