URL
https://opencores.org/ocsvn/scarts/scarts/trunk
Subversion Repositories scarts
[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [friend7.C] - Rev 12
Compare with Previous | Blame | View Log
// { dg-do run }
template <class T>
void f(T);
template <class U>
class C
{
template <class T>
friend void f(T);
int i;
};
template <class T>
void f(T)
{
C<T> c;
c.i = 3;
}
int main()
{
f(7);
}