URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-dev/] [fsf-gcc-snapshot-1-mar-12/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [warn/] [private1.C] - Rev 783
Compare with Previous | Blame | View Log
// g++ should not complain about A having private [cd]tors.
class A
{
A();
~A();
public:
int dummy(); // needed to get bogus warning
static A* get_A ();
};
A* A::get_A()
{
static A a;
return &a;
}