Debian Codegraph @

gcc/testsuite/g++.dg/modules/legacy-3_b.H

raw
1 // { dg-do preprocess }
2 // { dg-additional-options -fmodule-header }
3
4 #define frob FROB
5
6 // Enough blank lines to force a line sync before the legacy import
7
8 // this should be diverted, if it isn't the above #define will break us
9 #include "legacy-3_a.H"
10 int move (int X = __LINE__); // Capture __LINE__ in a non-definition
11
12 // this should not be diverted
13 #include "legacy-3.h"
14
15 // { dg-final { scan-file legacy-3_b.i {\n# 9 "[^\n]*legacy-3_b.H"\nimport "[^\n]*legacy-3_a.H" \[\[__translated\]\];\nint move \(int X = 10\);\n} } }
16