Debian Codegraph @

testsuite/small/attr-8.c

raw
1 /* { dg-options "-DCE_EXTRACT_FUNCTIONS=func_f -DCE_NO_EXTERNALIZATION" }*/
2 #define MACRO 0
3
4 /* Do this sort of blurry definition to confuse out clang-extract into dumping
5 the AST of the function. */
6 #define DEFINE_FUNCTION(name) __attribute__((noinline)) int func_##name(void) { return MACRO; }
7 #define DEFINE_VARIABLE(name) int var_##name;
8 #define DEFINE(f) DEFINE_VARIABLE(f) DEFINE_FUNCTION(f)
9
10 DEFINE(f)
11
12 /* { dg-final { scan-tree-dump "__attribute__\(\(noinline\)\)" } } */
13 /* { dg-final { scan-tree-dump-not "#define noinline" } } */