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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [torture/] [pr45875.C] - Blame information for rev 801

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
 
3
struct c1 {};
4
 
5
struct c10 : c1
6
{
7
  virtual void foo ();
8
};
9
 
10
struct c11 : c10, c1            //  // { dg-warning "" }
11
{
12
  virtual void f6 ();
13
};
14
 
15
struct c28 : virtual c11
16
{
17
  void f6 ();
18
};
19
 
20
void check_c28 ()
21
{
22
  c28 obj;
23
  c11 *ptr = &obj;
24
  ptr->f6 ();
25
}

powered by: WebSVN 2.1.0

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