brintos

brintos / llvm-project-archived public Read only

0
0
Text · 579 B · 74b8880 Raw
18 lines · c
1// RUN: %clang_cc1 -verify -std=c2y -ffreestanding %s2// RUN: %clang_cc1 -verify -std=c23 -ffreestanding %s3 4/* WG14 N3496: Clang 205 * Clarify the specification of the width macros6 *7 * C23 N2412 mandated a two's complement sign representation for integers, and8 * added *_WIDTH macros for all of the various integer types. There was9 * confusion as to whether BOOL_WIDTH specified the minimum number of bits or10 * an exact number of bits. N3496 clarified that it's an exact number of bits.11 */12// expected-no-diagnostics13 14#include <limits.h>15 16static_assert(BOOL_WIDTH == 1);17 18