2 * This testing program makes sure the ext2_types header file
4 * Copyright (C) 2006 by Theodore Ts'o.
7 * This file may be redistributed under the terms of the GNU Public
16 #include "ext2fs/ext2_types.h"
18 int main(int argc, char **argv)
20 if (sizeof(__u8) != 1) {
21 printf("Sizeof(__u8) is %d should be 1\n",
25 if (sizeof(__s8) != 1) {
26 printf("Sizeof(_s8) is %d should be 1\n",
30 if (sizeof(__u16) != 2) {
31 printf("Sizeof(__u16) is %d should be 2\n",
35 if (sizeof(__s16) != 2) {
36 printf("Sizeof(__s16) is %d should be 2\n",
40 if (sizeof(__u32) != 4) {
41 printf("Sizeof(__u32) is %d should be 4\n",
45 if (sizeof(__s32) != 4) {
46 printf("Sizeof(__s32) is %d should be 4\n",
50 if (sizeof(__u64) != 8) {
51 printf("Sizeof(__u64) is %d should be 8\n",
55 if (sizeof(__s64) != 8) {
56 printf("Sizeof(__s64) is %d should be 8\n",
60 printf("The ext2_types.h types are correct.\n");