repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Wattributes-10.c: Add -fno-common option on hppa*-*-hpux*.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
parse
/
pr37862.C
blob
89b4b69947517038c91aca15b382bcdc6763be06
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
}