1 /* Test of <inttypes.h> substitute.
2 Copyright (C) 2006-2007, 2009-2020 Free Software Foundation, Inc.
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 3 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <https://www.gnu.org/licenses/>. */
17 /* Written by Bruno Haible <bruno@clisp.org>, 2007. */
25 /* Tests for macros supposed to be defined in inttypes.h. */
27 const char *k
= /* implicit string concatenation */
32 PRIo8 PRIu8 PRIx8 PRIX8
38 PRIo16 PRIu16 PRIx16 PRIX16
44 PRIo32 PRIu32 PRIx32 PRIX32
50 PRIo64 PRIu64 PRIx64 PRIX64
52 PRIdLEAST8 PRIiLEAST8 PRIoLEAST8 PRIuLEAST8 PRIxLEAST8 PRIXLEAST8
53 PRIdLEAST16 PRIiLEAST16 PRIoLEAST16 PRIuLEAST16 PRIxLEAST16 PRIXLEAST16
54 PRIdLEAST32 PRIiLEAST32 PRIoLEAST32 PRIuLEAST32 PRIxLEAST32 PRIXLEAST32
55 PRIdLEAST64 PRIiLEAST64
56 PRIoLEAST64 PRIuLEAST64 PRIxLEAST64 PRIXLEAST64
57 PRIdFAST8 PRIiFAST8 PRIoFAST8 PRIuFAST8 PRIxFAST8 PRIXFAST8
58 PRIdFAST16 PRIiFAST16 PRIoFAST16 PRIuFAST16 PRIxFAST16 PRIXFAST16
59 PRIdFAST32 PRIiFAST32 PRIoFAST32 PRIuFAST32 PRIxFAST32 PRIXFAST32
61 PRIoFAST64 PRIuFAST64 PRIxFAST64 PRIXFAST64
62 PRIdMAX PRIiMAX PRIoMAX PRIuMAX PRIxMAX PRIXMAX
67 PRIoPTR PRIuPTR PRIxPTR PRIXPTR
70 const char *l
= /* implicit string concatenation */
95 SCNdLEAST8 SCNiLEAST8 SCNoLEAST8 SCNuLEAST8 SCNxLEAST8
96 SCNdLEAST16 SCNiLEAST16 SCNoLEAST16 SCNuLEAST16 SCNxLEAST16
97 SCNdLEAST32 SCNiLEAST32 SCNoLEAST32 SCNuLEAST32 SCNxLEAST32
98 SCNdLEAST64 SCNiLEAST64
99 SCNoLEAST64 SCNuLEAST64 SCNxLEAST64
100 SCNdFAST8 SCNiFAST8 SCNoFAST8 SCNuFAST8 SCNxFAST8
101 SCNdFAST16 SCNiFAST16 SCNoFAST16 SCNuFAST16 SCNxFAST16
102 SCNdFAST32 SCNiFAST32 SCNoFAST32 SCNuFAST32 SCNxFAST32
103 SCNdFAST64 SCNiFAST64
104 SCNoFAST64 SCNuFAST64 SCNxFAST64
105 SCNdMAX SCNiMAX SCNoMAX SCNuMAX SCNxMAX
110 SCNoPTR SCNuPTR SCNxPTR