repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr45875.C
blob
f1347f543262210f7c76898ba69b0b4cc1e6b005
1
// { dg-do compile }
2
3
struct c1 {};
4
5
struct c10 : c1
6
{
7
virtual void foo ();
8
};
9
10
struct c11 : c10, c1 // // { dg-warning "" }
11
{
12
virtual void f6 ();
13
};
14
15
struct c28 : virtual c11
16
{
17
void f6 ();
18
};
19
20
void check_c28 ()
21
{
22
c28 obj;
23
c11 *ptr = &obj;
24
ptr->f6 ();
25
}