check length of TESTuint64

This commit is contained in:
Love Hornquist Astrand
2011-12-12 23:13:56 -08:00
parent 80fd2959b9
commit 449fb4775e

View File

@@ -75,6 +75,12 @@ test_uint64(void)
for (i = 0; i < ntests; i++) for (i = 0; i < ntests; i++)
tests[i].val = &values[i]; tests[i].val = &values[i];
if (sizeof(TESTuint64) != sizeof(uint64_t)) {
ret += 1;
printf("sizeof(TESTuint64) %d != sizeof(uint64_t) %d\n",
(int)sizeof(TESTuint64), (int)sizeof(uint64_t));
}
ret += generic_test (tests, ntests, sizeof(TESTuint64), ret += generic_test (tests, ntests, sizeof(TESTuint64),
(generic_encode)encode_TESTuint64, (generic_encode)encode_TESTuint64,
(generic_length)length_TESTuint64, (generic_length)length_TESTuint64,