Debian Codegraph @

gcc/testsuite/g++.dg/modules/cpp-6_c.C

raw
1 // { dg-do preprocess }
2 // { dg-additional-options "-fmodules-ts -isystem [srcdir] -fno-canonical-system-headers" }
3
4 #define empty
5 #define nop(X) X
6
7 ONE bibity bobity
8 import <cpp-6_a.H>;
9 TWO bibity bobity
10 import empty nop(<bibity>);
11 THREE bibity bobity
12 import empty <bobity.H>;
13 FOUR bibity bobity
14
15 // { dg-final { scan-file cpp-6_c.i {ONE bibity bobity\n} } }
16 // { dg-final { scan-file cpp-6_c.i {TWO cpp-6_b.H bobity\n} } }
17 // { dg-final { scan-file cpp-6_c.i {THREE cpp-6_b.H cpp-6_b\n} } }
18 // { dg-final { scan-file cpp-6_c.i {FOUR cpp-6_b.H cpp-6_b\n} } }