repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[mlir] Update Ch-2.md (#121379)
[llvm-project.git]
/
clang
/
test
/
Modules
/
Inputs
/
merge-vtable-codegen
/
b.h
blob
770e46077f933827e5acdead37d355aefde8f59d
1
#ifndef B_H
2
#define B_H
3
4
#include
"a.h"
5
6
class
B
:
virtual public
A
{
7
virtual
void
x
() {}
8
};
9
10
void
b
(
A
*
p
) {
11
p
->
x
();
12
// Instantiating a class that virtually inherits 'A'
13
// triggers calculation of the vtable offsets in 'A'.
14
B b
;
15
}
16
17
#endif