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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [override3.C] - Blame information for rev 774

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
// { dg-options "--std=c++98" }
3
 
4
struct B final {}; // { dg-warning "override controls" }
5
 
6
struct D : B {}; // { dg-error "cannot derive from 'final' base" }
7
 
8
struct E __final {};
9
 
10
struct F : E {}; // { dg-error "cannot derive from 'final' base" }
11
 
12
struct G
13
{
14
  virtual void f();
15
};
16
 
17
struct H : G
18
{
19
  void f() override; // { dg-warning "override controls" }
20
};
21
 
22
int main()
23
{
24
}

powered by: WebSVN 2.1.0

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