michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: /* michael@0: * Test: obsints.c michael@0: * michael@0: * Description: make sure that protypes.h defines the obsolete integer michael@0: * types intn, uintn, uint, int8, uint8, int16, uint16, int32, uint32, michael@0: * int64, and uint64. michael@0: */ michael@0: michael@0: #include michael@0: michael@0: #ifdef NO_NSPR_10_SUPPORT michael@0: michael@0: /* nothing to do */ michael@0: int main(int argc, char **argv) michael@0: { michael@0: printf("PASS\n"); michael@0: return 0; michael@0: } michael@0: michael@0: #else /* NO_NSPR_10_SUPPORT */ michael@0: michael@0: #include "prtypes.h" /* which includes protypes.h */ michael@0: michael@0: int main(int argc, char **argv) michael@0: { michael@0: /* michael@0: * Compilation fails if any of these integer types are not michael@0: * defined by protypes.h. michael@0: */ michael@0: intn in; michael@0: uintn uin; michael@0: uint ui; michael@0: int8 i8; michael@0: uint8 ui8; michael@0: int16 i16; michael@0: uint16 ui16; michael@0: int32 i32; michael@0: uint32 ui32; michael@0: int64 i64; michael@0: uint64 ui64; michael@0: michael@0: printf("PASS\n"); michael@0: return 0; michael@0: } michael@0: michael@0: #endif /* NO_NSPR_10_SUPPORT */