Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
clang
/
e9ee382c32a83e9807a2fe4cfd52b5a11169a4b8
/
.
/
test
/
CodeGenCXX
/
virt-call-offsets.cpp
blob: 5eef6fea9e6fdfb50bd16283351af73dc83c023b [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
struct
A
{
virtual
void
a
();
};
struct
B
:
A
{};
struct
C
:
B
{
virtual
void
a
();
};
void
(
C
::*
x
)()
=
&
C
::
a
;
// CHECK: @x = global { i{{[0-9]+}}, i{{[0-9]+}} } { i{{[0-9]+}} 1, i{{[0-9]+}} 0 }