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
Fix test-suite fallout of default -Wreturn-type.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ipa
/
pr77905.C
blob
0f73d50addc2a6f99731468c6843491b1c11ea8c
1
// PR ipa/77905
2
// { dg-do compile }
3
// { dg-options "-O2" }
4
5
struct A {
6
A(int);
7
};
8
struct B : A {
9
B();
10
} A;
11
struct C : virtual A {
12
C(int);
13
};
14
A::A(int x) {
15
if (x)
16
A(0);
17
}
18
19
B::B() : A(1) {}
20
21
C::C(int) : A(1) {}