repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
overload
/
virtual1.C
blob
8940aefd05356beb301c13261419829b22849427
1
// Test that explicit scope suprresses virtual lookup even after an
2
// explicit object.
3
4
extern "C" int printf (const char *, ...);
5
6
struct A
7
{
8
virtual int f () { return 0; }
9
};
10
11
struct B: public A
12
{
13
int f () { return 1; }
14
int g() { return this->A::f(); }
15
};
16
17
int main()
18
{
19
B b;
20
return b.g();
21
}