if-cexp.c

来自「this is a gcc file, you can download it 」· C语言 代码 · 共 15 行

C
15
字号
/* { dg-do preprocess } *//* Test the ? : opearator, for precedence and both true and false.  */#if  1 ? 1 ? 2 : 0 : 0#error OK	/* { dg-error "OK" "nested ? :" } */#endif#if  ((0) ? (1) ? (2) : (3) : (4) ? (5): (6)) == 5#error OK	/* { dg-error "OK" "nested ? : with parens" } */#endif#if 2:		/* { dg-error "':' without" "immediate :" } */#endif

⌨️ 快捷键说明

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