TestEABaseSeparate.cpp 1014 B

12345678910111213141516171819202122232425262728293031323334
  1. // The purpose of this compilation unit is to test EABase in the absence of other system headers.
  2. // For example TestEABase.cpp directly includes system headers like ctype.h, stddef.h, stdarg, etc.
  3. // However, these headers make it impossible to verify that certain definitions are being provided
  4. // by EABase instead of the system headers being included directly.
  5. #include <EABase/eabase.h>
  6. // This structure tests that EABase types are properly defined.
  7. struct EABaseDefinedTypesStruct
  8. {
  9. char8_t mChar8_t;
  10. char16_t mChar16_t;
  11. char32_t mChar32_t;
  12. wchar_t mWchar_t;
  13. bool8_t mBool8_t;
  14. int8_t mInt8_t;
  15. int16_t mInt16_t;
  16. int32_t mInt32_t;
  17. int64_t mInt64_t;
  18. uint8_t mUint8_t;
  19. uint16_t mUint16_t;
  20. uint32_t mUint32_t;
  21. uint64_t mUint64_t;
  22. intmax_t mIntmax_t;
  23. uintmax_t mUintmax_t;
  24. size_t mSize_t;
  25. ssize_t mSsize_t;
  26. float_t mFloat_t;
  27. double_t mDouble_t;
  28. intptr_t mIntptr_t;
  29. uintptr_t mUintptr_t;
  30. ptrdiff_t mPtrdiff_t;
  31. };