Debian Codegraph @

testsuite/small/macro-17.c

raw
1 /* { dg-options "-DCE_EXTRACT_FUNCTIONS=f -DCE_NO_EXTERNALIZATION" }*/
2 #define __stringify_1(x...) #x
3 #define __stringify(x...) __stringify_1(x)
4
5 const char *f(void)
6 {
7 return __stringify(1);
8 }
9
10 /* { dg-final { scan-tree-dump "#define __stringify_1\(x...\) #x" } } */
11 /* { dg-final { scan-tree-dump "#define __stringify\(x...\) __stringify_1\(x\)" } } */
12 /* { dg-final { scan-tree-dump "return __stringify\(1\);" } } */