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
/
pr66896.C
blob
841515c846fac297ab579ba377501def41b10a8c
1
// PR ipa/66896
2
// { dg-do compile }
3
4
void f2 (void *);
5
void f3 ();
6
7
struct A
8
{
9
int *a;
10
A ();
11
~A () { a3 (); }
12
void a1 (int * p) { if (!p) f3 (); f2 (p); }
13
void a3 () { if (*a) a1 (a); }
14
};
15
16
struct B : A {~B () { a3 ();}};
17
18
struct F {};
19
20
struct G : F {B g;};
21
22
void foo () {G g;}