OpenCores
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++.mike/] [warn6.C] - Rev 820

Go to most recent revision | Compare with Previous | Blame | View Log

// { dg-do assemble  }
// { dg-options "-Woverloaded-virtual" }

struct B4 {
  virtual void bothfardiff(float);      // { dg-warning "" } was hidden
};

struct B3 : public B4 {
};

struct B2 {
};

struct B {
  virtual void baseonly(int);

  virtual void bothsame(int);

  virtual void bothdiff(float);         // { dg-warning "" } was hidden

  virtual void both2same(int);
  virtual void both2same(float);

  virtual void both12diff(int);
  virtual void both12diff(float);       // { dg-warning "" } was hidden
};

struct D : public B, public B2, public B3 {
  virtual void derivedonly(int);

  virtual void bothsame(int);

  virtual void bothdiff(int);           // { dg-warning "" } 

  virtual void both2same(int);
  virtual void both2same(float);

  virtual void both12diff(int);         // { dg-warning "" } 

  virtual void bothfardiff(int);        // { dg-warning "" } 
};

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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