OSDN Git Service

Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / parse / pr37862.C
1 // { dg-do run }
2 #include <stdlib.h>
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 }