28 lines
546 B
C
28 lines
546 B
C
#include <internal/cacheControl.h>
|
|
|
|
#include <stddef.h>
|
|
#include <string.h>
|
|
|
|
#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;
|
|
}
|