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
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
inherit
/
multiple1.C
blob
3eb9fe763a7ce8c957c2ca06dc3f005d60d40f3a
1
// { dg-options "-w" }
2
3
struct Base {
4
int b;
5
6
Base(int b) : b(b) { }
7
};
8
9
struct Derived : public Base {
10
Derived(int d) : Base(d) { }
11
};
12
13
struct Final : public Derived, public Base {
14
Final(int f) : Derived(f), Base(f-1) { }
15
};
16
17
int main()
18
{
19
Final f(5);
20
}