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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [inherit/] [pure1.C] - Blame information for rev 825

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

Line No. Rev Author Line
1 149 jeremybenn
// PR c++/23266
2
// Origin: Volker Reichelt  
3
// { dg-do compile }
4
 
5
void foo0() = 0;                   // { dg-error "like a variable" }
6
virtual void foo1() = 0;           // { dg-error "outside class|variable" }
7
 
8
struct A
9
{
10
  void foo2() = 0;                 // { dg-error "non-virtual" }
11
  static void foo3() = 0;          // { dg-error "static member" }
12
  virtual static void foo4() = 0;  // { dg-error "both virtual and static" }
13
  virtual void foo5() = 0;         // { dg-error "base class" }
14
};
15
 
16
struct B : A
17
{
18
  static void foo5() = 0;          // { dg-error "static member|declared" }
19
};

powered by: WebSVN 2.1.0

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