Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
clang
/
f8fd82ba49827db0f6a6ba00c55a7b56b12a19fa
/
.
/
test
/
CodeGenCXX
/
virtual-function-calls.cpp
blob: 0b3a684301eb216bd97a04ee5dc4c24d2af707ad [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
// PR5021
struct
A
{
virtual
void
f
(
char
);
};
void
f
(
A
*
a
)
{
// CHECK: call void %
a
->
f
(
'c'
);
}
struct
B
:
virtual
A
{
virtual
void
f
();
};
void
f
(
B
*
b
)
{
b
->
f
();
}