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
/
pr65722.C
blob
ee4ea24c25cfa62ef8051dd6cfc5ae2d80010e79
1
// { dg-do compile }
2
// { dg-options "-O -fipa-icf -fno-rtti" }
3
4
struct A
5
{
6
virtual void f ()
7
{
8
__builtin_abort ();
9
}
10
virtual void g ();
11
};
12
13
struct B : virtual A { };
14
struct C : B, virtual A { };
15
16
void foo()
17
{
18
C c;
19
C *p = &c;
20
p->f ();
21
}