llvm-for-llvmta/tools/clang/test/PCH/cxx-offsetof-base.h

6 lines
144 B
C
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// Header for PCH test cxx-offsetof-base.cpp
struct Base { int x; };
struct Derived : Base { int y; };
int o = __builtin_offsetof(Derived, x);