MOS Source Code
Loading...
Searching...
No Matches
enumsizes_intsize_unittests.cc
Go to the documentation of this file.
1#include <stdio.h>
2#include "enumsizes.pb.h"
3#include "unittests.h"
4
5extern "C" int TestIntSize() {
6 int status = 0;
7
8 TEST(sizeof(IntSizeInt8) == sizeof(uint8_t));
9 TEST(sizeof(IntSizeInt16) == sizeof(uint16_t));
10 TEST(sizeof(IntSizeInt32) == sizeof(uint32_t));
11 TEST(sizeof(IntSizeInt64) == sizeof(uint64_t));
12
13 if (status != 0) fprintf(stdout, "\n\nSome tests FAILED!\n");
14
15 return status;
16}
#define stdout
Definition mos_stdio.h:31
unsigned short uint16_t
Definition pb_syshdr.h:22
unsigned int uint32_t
Definition pb_syshdr.h:24
unsigned long long uint64_t
Definition pb_syshdr.h:26
unsigned char uint8_t
Definition pb_syshdr.h:20
#define TEST(x)
Definition test.h:3