summaryrefslogtreecommitdiff
path: root/clang/test/PCH/cxx-offsetof-base.h
blob: 7c7810185d466e49f122115a0bd3df1395b9ab32 (about) (plain)
1
2
3
4
5
// Header for PCH test cxx-offsetof-base.cpp

struct Base { int x; };
struct Derived : Base { int y; };
int o = __builtin_offsetof(Derived, x);