inttypes-2.c

来自「Mac OS X 10.4.9 for x86 Source Code gcc」· C语言 代码 · 共 46 行

C
46
字号
/* APPLE LOCAL file test of inttypes.h [U]INT*_C macros *//* { dg-do compile } *//* { dg-options "-Wall -W" } */#include <stdio.h>#include <inttypes.h>#include <stdint.h>#if INT8_C(3) != 3#error int8 comparison failed#endif#if INT16_C(-3) != -3#error int16 comparison failed#endif#if INT32_C(536870912) != 536870912L#error int32 comparison failed#endif#if INT64_C(536870912) != 536870912LL#error int64 comparison failed#endif#if UINT8_C(3) != 3#error int8 comparison failed#endif#if UINT16_C(3) != 3#error int16 comparison failed#endif#if UINT32_C(536870912) != 536870912UL#error int32 comparison failed#endif#if UINT64_C(536870912) != 536870912ULL#error int64 comparison failed#endifint main(){  return INT32_C(0);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?