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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [other/] [redecl2.C] - Rev 774

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

// PR c++/17816
// We failed to report duplicate definitions of pure virtual ns.

// { dg-do compile }

struct S {
  virtual int foo() = 0;
};
 
int S::foo() { return 0; } // { dg-error "defined here" }
int S::foo() { return 0; } // { dg-error "redefinition" }

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.