Debian Codegraph @

testsuite/includes/include-4.c

raw
1 /* { dg-options "-DCE_EXTRACT_FUNCTIONS=f -DCE_NO_EXTERNALIZATION -DCE_KEEP_INCLUDES" }*/
2
3 #include "header-4.h"
4 #define MACRO 2
5 #include "header-4.h"
6
7 int f(void)
8 {
9 // force compilation error if macro != 2
10 #if MACRO != 2
11 # error "MACRO with incorrect value."
12 #endif
13 return MACRO;
14 }
15
16 /* { dg-final { scan-tree-dump "#include \"header-4.h\"\n#define MACRO 2\n#include \"header-4.h\"" } } */
17 /* { dg-final { scan-tree-dump "return MACRO;" } } */