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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [opt/] [local1.C] - Blame information for rev 315

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

Line No. Rev Author Line
1 301 jeremybenn
// { dg-options "-O" }
2
 
3
struct Outer {
4
  struct Inner { virtual bool f() = 0; };
5
  void g(Inner &) const;
6
};
7
 
8
inline void h(const Outer &o)
9
{
10
  struct Local : public Outer::Inner {
11
    virtual bool f() {};
12
  };
13
  Local l;
14
  o.g(l);
15
}
16
 
17
void f(Outer &req) {
18
  h (req);
19
}
20
 

powered by: WebSVN 2.1.0

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