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
RISC-V: Add naked function support.
[official-gcc.git]
/
libvtv
/
testsuite
/
libvtv.cc
/
mul_inh.cc
blob
b32b710c835d352dfdbec75294446d249a5e5f42
1
// { dg-do run }
2
3
extern
"C"
int
printf
(
const char
*, ...);
4
5
struct
A
{
6
virtual
~
A
() {}
7
};
8
9
struct
B
{
10
virtual
~
B
() {}
11
};
12
13
struct
C
:
public
A
{
14
virtual
~
C
() {}
15
};
16
17
struct
D
:
public
C
,
B
{
18
virtual
~
D
() {}
19
};
20
21
D d
;
22
23
int
main
()
24
{
25
printf
(
"%p
\n
"
, &
d
);
26
return
0
;
27
}