undef1.c

来自「gcc3.2.1源代码」· C语言 代码 · 共 15 行

C
15
字号
/* { dg-do preprocess } *//* 6.9.3.11: ...If there  are sequences of preprocessing tokens within   the list of arguments  that  would  otherwise  act  as  preprocessing   directives, the behavior is undefined.   I choose to make this a hard error.  It definitely should not cause   a core dump.  */#define foo(bar) barfoo( blah	/* { dg-error "unterminated" "" } */#undef foo	/* { dg-error "may not be used inside" "foo(#undef foo)" } */     blah )

⌨️ 快捷键说明

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