recurse-3.c

来自「xml大全 可读写调用率很高 xml大全 可读写调用率很高」· C语言 代码 · 共 26 行

C
26
字号
/* Tests that macros that look recursive but are not are accepted.  *//* { dg-do preprocess } */#define g(x) xg(g(g(g(g(g(g))))));	       /* { dg-bogus "detected recursion" } *//* This macro gets longer with each loop, to thwart tests for   recursion based on length.  */#define f(a,b,c,d,e,f,g,h,i) a(b,c,d,e,f,g,h,i,2 3 4 5)f(f,f,f,f,f,f,f,f,f)	       /* { dg-bogus "detected recursion" } *//* The above cases should be enough, but this is taken from cccp   sources so let's try it too.  */#define foo(x,y) bar (x (y,0), y)foo (foo, baz);	       /* { dg-bogus "detected recursion" } */#define mac mac/**/romac		       /* { dg-bogus "detected recursion" } */#define mac2 mac2"mac2" 		       /* { dg-bogus "detected recursion" } */#define macro "macromacro mac2	       /* { dg-bogus "detected recursion" } */

⌨️ 快捷键说明

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