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: #include michael@0: #include "prtypes.h" michael@0: michael@0: // This test is NOT intended to be run. It's a test to make sure michael@0: // PRInt{N} matches int{N}_t. If they don't match, we should get a michael@0: // compiler warning or error in main(). michael@0: michael@0: static void michael@0: ClearNSPRIntTypes(PRInt8 *a, PRInt16 *b, PRInt32 *c, PRInt64 *d) michael@0: { michael@0: *a = 0; *b = 0; *c = 0; *d = 0; michael@0: } michael@0: michael@0: static void michael@0: ClearStdIntTypes(int8_t *w, int16_t *x, int32_t *y, int64_t *z) michael@0: { michael@0: *w = 0; *x = 0; *y = 0; *z = 0; michael@0: } michael@0: michael@0: int michael@0: main() michael@0: { michael@0: PRInt8 a; PRInt16 b; PRInt32 c; PRInt64 d; michael@0: int8_t w; int16_t x; int32_t y; int64_t z; michael@0: michael@0: ClearNSPRIntTypes(&w, &x, &y, &z); michael@0: ClearStdIntTypes(&a, &b, &c, &d); michael@0: return 0; michael@0: }