Debian Codegraph @

gcc/testsuite/g++.dg/modules/unnamed-2.C

raw
1 // { dg-additional-options "-fmodules-ts -fdump-lang-module" }
2 export module PiL;
3 // { dg-module-cmi PiL }
4
5 static int counter = 0;
6
7 // These are not inlined, so their bodies don't get into the BMI
8 export int get ()
9 {
10 return counter++;
11 }
12
13 export int hwm ()
14 {
15 return counter;
16 }
17
18 // { dg-final { scan-lang-dump-not {Bindings '::counter' section:} module } }
19 // { dg-final { scan-lang-dump-not {Unnamed . '::counter'} module } }