Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
clang
/
89fecb519558eed4cf9e8375af62c10367ed18ba
/
.
/
test
/
CodeGenCXX
/
offsetof.cpp
blob: 7e257e6af9f350b0d9646d0f83d92bd9f9a72d57 [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -emit-llvm -x c++ < %s
// XFAIL: *
// PR17578
struct
Base
{
int
a
;
};
struct
Derived
:
virtual
Base
{};
void
foo
()
{
int
xx
=
__builtin_offsetof
(
Derived
,
a
);
}