Debian Codegraph @

gcc/testsuite/g++.dg/modules/scc-1.C

raw
1 // Check SCC regions are atomic
2 // { dg-additional-options "-fmodules-ts -fdump-lang-module-uid" }
3
4 export module foo;
5 // { dg-module-cmi foo }
6
7 export int bar (int);
8 export int baz (int = bar (1));
9 export int bar (int = baz (1));
10
11 // The ordering depends on hash table iteration, which is address-dependent
12
13 // { dg-final { scan-lang-dump { Writing named:-[0-9]* function_decl:'::bar'} "module" } }
14 // { dg-final { scan-lang-dump { Writing named:-[0-9]* function_decl:'::baz'} "module" } }
15 // { dg-final { scan-lang-dump { \.[0-9]*\. Wrote backref:-[0-9]* function_decl:'::ba[rz]'} "module" } }
16 // { dg-final { scan-lang-dump { Wrote backref:-[0-9]* function_decl:'::ba[rz]'} "module" } }