OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [warn/] [private1.C] - Diff between revs 154 and 816

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 154 Rev 816
// g++ should not complain about A having private [cd]tors.
// g++ should not complain about A having private [cd]tors.
class A
class A
{
{
  A();
  A();
  ~A();
  ~A();
public:
public:
  int dummy();                  // needed to get bogus warning
  int dummy();                  // needed to get bogus warning
  static A* get_A ();
  static A* get_A ();
};
};
A* A::get_A()
A* A::get_A()
{
{
  static A a;
  static A a;
  return &a;
  return &a;
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.