funlike-2.c

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

C
24
字号
/* Test that nested commas and parentheses in macro arguments are   OK.  *//* { dg-do preprocess } */#define f(x) x#define g(x, y) x y#if f((1)) != 1# error		/* { dg-bogus "error" "nested parens 1" } */#endif#if f((1, 2)) != 2# error		/* { dg-bogus "error" "nested comma 1" } */#endif#if g(, (1)) != 1# error		/* { dg-bogus "error" "nested parens 2" } */#endif#if g((1, 2), + 3) != 5# error		/* { dg-bogus "error" "nested comma 2" } */#endif

⌨️ 快捷键说明

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