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
tree: Don't reuse types if TYPE_USER_ALIGN differ [PR94775]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wunused-var-14.C
blob
a552b56dad161e045916bc26c35ac6d85c62b9c0
1
// PR c++/44682
2
// { dg-do compile }
3
// { dg-options "-Wunused" }
4
5
struct S { virtual ~S () {} };
6
struct T { virtual ~T () {} };
7
struct U : S, T {};
8
9
void f (U &);
10
11
void
12
g (void *v)
13
{
14
T *t = static_cast <T *> (v);
15
U *u = static_cast <U *> (t);
16
f (*u);
17
}