URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [friend10.C] - Rev 149
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// Origin: Neil Booth, from PR #78
namespace MySpace
{
class Tag1 { };
class Tag2 { };
template<class Tag>
class Object
{
public:
friend void Forgotten(Object const & m) {}
};
typedef Object<Tag1> U1;
typedef Object<Tag2> U2;
void foo()
{
Forgotten(U1());
Forgotten(U2());
}
void bar()
{
Forgotten(U1());
}
}
Go to most recent revision | Compare with Previous | Blame | View Log