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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [parse/] [pr37862.C] - Blame information for rev 774

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do run }
2
#include 
3
 
4
class A {
5
public:
6
  virtual void get (void) { }
7
};
8
 
9
class B : public A {
10
public:
11
  void get (void) { abort (); }
12
};
13
 
14
class C : public B { };
15
 
16
int main (void)
17
{
18
  C   c;
19
  C * p = &c;
20
 
21
  p->A::get ();
22
  (p->A::get) ();       // The C++ parser used to resolve this to B::get()
23
 
24
  return 0;
25
}

powered by: WebSVN 2.1.0

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