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

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

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do assemble  }
2
 
3
class A {
4
public:
5
  virtual int foo() = 0; // { dg-error "" } original definition
6
};
7
 
8
class B {
9
public:
10
    virtual double foo() = 0;
11
};
12
 
13
class C
14
  : public A, public B
15
{
16
public:
17
  virtual double foo() { return 2; } // { dg-error "" } conflicting return type
18
};
19
 
20
class D
21
  : public B, public A
22
{
23
public:
24
  virtual double foo() { return 2; } // { dg-error "" } conflicting return type
25
};

powered by: WebSVN 2.1.0

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