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/] [pr21983.C] - Blame information for rev 823

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

Line No. Rev Author Line
1 149 jeremybenn
// PR c++/21983
2
// { dg-do compile }
3
 
4
struct B { virtual void foo () = 0; };
5
struct D1 : public virtual B { virtual void foo () {} };
6
struct D2 : public virtual B { virtual void foo () {} };
7
struct D : public D1, public D2 { };    // { dg-warning "no unique final overrider" }

powered by: WebSVN 2.1.0

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