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 Library
8 * General Public License, version 2.
17 #include "ext2fs/ext2_types.h"
19 int main(int argc, char **argv)
21 if (sizeof(__u8) != 1) {
22 printf("Sizeof(__u8) is %d should be 1\n",
26 if (sizeof(__s8) != 1) {
27 printf("Sizeof(_s8) is %d should be 1\n",
31 if (sizeof(__u16) != 2) {
32 printf("Sizeof(__u16) is %d should be 2\n",
36 if (sizeof(__s16) != 2) {
37 printf("Sizeof(__s16) is %d should be 2\n",
41 if (sizeof(__u32) != 4) {
42 printf("Sizeof(__u32) is %d should be 4\n",
46 if (sizeof(__s32) != 4) {
47 printf("Sizeof(__s32) is %d should be 4\n",
51 if (sizeof(__u64) != 8) {
52 printf("Sizeof(__u64) is %d should be 8\n",
56 if (sizeof(__s64) != 8) {
57 printf("Sizeof(__s64) is %d should be 8\n",
61 printf("The ext2_types.h types are correct.\n");