#include #include #include #define CHECK(expr) \ do { \ if (!(expr)) { \ return 1; \ } \ } while (0) int main(void) { CacheControl_s cache; memset(&cache, 0, sizeof(cache)); CHECK(sizeof(cache.waitQ) > 0); CHECK(sizeof(cache.lruQDirty) > 0); CHECK(sizeof(cache.giver.fsm) > 0); CHECK(sizeof(cache.giver.alarm) > 0); CHECK(offsetof(CacheControl_s, CC_HMCCacheTypeLatch) > 0); CHECK(cache.isInitialized == 0); return 0; }