Debian Codegraph @

gcc/testsuite/g++.dg/modules/vmort-2_a.C

raw
1 // { dg-module-do run }
2 // { dg-additional-options "-fmodules-ts -fdump-lang-module-graph-blocks" }
3
4 export module voldy;
5 // { dg-module-cmi voldy }
6
7 export auto frobber (int i)
8 {
9 return [=] (int j) { return i + j; };
10 }
11
12 // { dg-final { scan-lang-dump {Connecting definition decl type_decl:'::frobber::._anon_0'} module } }
13 // { dg-final { scan-lang-dump {Entities 5} module } }
14
15 // { dg-final { scan-lang-dump {Cluster members:\n \[0\]=decl declaration '::frobber'\n \[1\]=decl definition '::frobber::._anon_0'\n( \[.\]=decl [^\n]*'\n)* \[.\]=binding '::frobber'} module } }