URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.niklas/] [t135.C] - Rev 154
Compare with Previous | Blame | View Log
// { dg-do compile }
// GROUPS niklas pt friend
template <class T> class C1
{
public:
void diddle_C2 ();
};
class C2
{
int data_member; // { dg-error "" }
friend class C1; // { dg-error "" }
};
class C2 C2_object;
template <class T> void C1<T>::diddle_C2 ()
{
C2_object.data_member = 99; // { dg-error "" }
}
C1<int> C1_int_object;
void foobar ()
{
C1_int_object.diddle_C2 ();
}