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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [virtual11.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
// { dg-do assemble  }
2
 
3
// Copyright (C) 2000 Free Software Foundation, Inc.
4
// Contributed by Nathan Sidwell 14 Nov 2000 
5
 
6
// We failed to check virtual functions hidden by using declarations.
7
 
8
struct A
9
{
10
  virtual int foo ();
11
};
12
 
13
struct B
14
{
15
  virtual void foo ();  // { dg-error "" } of this function
16
};
17
 
18
struct C : A , B
19
{
20
};
21
 
22
struct D : C
23
{
24
  void foo (short);
25
  using A::foo;
26
};
27
 
28
struct E : D
29
{
30
  virtual int foo ();   // { dg-error "" } invalid override
31
};

powered by: WebSVN 2.1.0

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