llvm-project/clang/test/PCH/cxx-offsetof-base.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
144 B
C
Raw Normal View History

// Header for PCH test cxx-offsetof-base.cpp
struct Base { int x; };
struct Derived : Base { int y; };
int o = __builtin_offsetof(Derived, x);