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