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
/
lto
/
20081217-2_0.C
blob
3bc6ba997a5773812f80a5d749b699e828c6c7cf
1
struct A {
2
virtual int foo() { return 0; }
3
};
4
struct B {
5
virtual int f() {return 1; }
6
};
7
struct C : public A, public B {
8
C();
9
virtual int f() { return 0; }
10
};
11
12
C::C()
13
{
14
}
15
16
int
17
main()
18
{
19
C c;
20
return c.f();
21
}