Debian Codegraph @

gcc/testsuite/g++.dg/modules/unnamed-1_b.C

raw
1 // { dg-additional-options "-fmodules-ts -fdump-lang-module" }
2
3 import PiL;
4
5 // Until the linkage is promoted, this won't link.
6
7 int main ()
8 {
9 int i = get ();
10 if (i)
11 return 1;
12 int h = hwm ();
13 if (h != 1)
14 return 2;
15 return 0;
16 }
17
18 // { dg-final { scan-lang-dump {Bindings '::counter'} module } }
19 // { dg-final { scan-lang-dump {>Loading entity PiL\[0\] section:1} module } }