URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [inherit/] [pure1.C] - Rev 301
Compare with Previous | Blame | View Log
// PR c++/23266
// Origin: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
// { dg-do compile }
void foo0() = 0; // { dg-error "like a variable" }
virtual void foo1() = 0; // { dg-error "outside class|variable" }
struct A
{
void foo2() = 0; // { dg-error "non-virtual" }
static void foo3() = 0; // { dg-error "static member" }
virtual static void foo4() = 0; // { dg-error "both virtual and static" }
virtual void foo5() = 0; // { dg-error "base class" }
};
struct B : A
{
static void foo5() = 0; // { dg-error "static member|declared" }
};