Debian Codegraph @

gcc/testsuite/g++.dg/modules/global-3_a.C

raw
1 // { dg-module-do run }
2 // { dg-additional-options "-fmodules-ts -fdump-lang-module-graph" }
3 // { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
4 module;
5 #include <iostream>
6 export module logger;
7 // { dg-module-cmi logger }
8
9 export void Log (char const *msg)
10 {
11 std::cout << "Logging:" << msg << "\n";
12 }
13
14 // { dg-final { scan-lang-dump {Dependencies of decl function_decl:'::Log'} module } }
15 // not reachable (body not inline)
16 // { dg-final { scan-lang-dump-not {Reachable GMF '::printf[^'\n]*' added} module } }
17