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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [virtual2.C] - Blame information for rev 699

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do run  }
2
struct B
3
{
4
  virtual int f() volatile
5
    { return 0; }
6
};
7
 
8
 
9
struct D : public B
10
{
11
  virtual int f()
12
    { return 1; }
13
};
14
 
15
int main()
16
{
17
  volatile D d;
18
  volatile B& b = d;
19
  return b.f();
20
}

powered by: WebSVN 2.1.0

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