Debian Codegraph @

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

raw
1 // { dg-module-do run }
2 // { dg-additional-options "-fmodule-header -fdump-lang-module-vops" }
3 // { dg-module-cmi {} }
4
5 import "macro-3_a.H";
6
7 // Not the controlling macro, because of above tokens
8 #ifndef MACRO_3b_H
9 #define MACRO_3b_H
10
11 #define bob 1
12 #undef foo
13 #undef bar
14 #define bar 3
15
16 #endif
17
18 // { dg-final { scan-lang-dump {Read new macro #define foo at} module } }
19 // { dg-final { scan-lang-dump {Read new macro #define bar at} module } }
20 // { dg-final { scan-lang-dump-not {Read [^ ]* macro #define bob at} module } }
21
22 // { dg-final { scan-lang-dump {Writing macro #define bob at} module } }
23 // { dg-final { scan-lang-dump {Writing macro #undef & #define bar at} module } }
24 // { dg-final { scan-lang-dump {Writing macro #undef foo at} module } }