Debian Codegraph @

gcc/testsuite/g++.dg/modules/tpl-spec-3_b.C

raw
1 // { dg-additional-options {-fmodules-ts -fdump-lang-module} }
2
3 import TPL;
4
5 int main ()
6 {
7 frob f;
8
9 f.store (1);
10 if (f.i != -1)
11 return 1;
12
13 f.store (1.0f);
14 if (f.i != 1)
15 return 2;
16
17 return 0;
18 }
19
20 // We read a pending for both '::frob' and '::frob::store'.
21 // { dg-final { scan-lang-dump {Reading 2 pending entities keyed to '::frob'} module } }
22 // { dg-final { scan-lang-dump-not {Reading definition function_decl '::frob@TPL:.::store@TPL:.<int>'} module } }
23
24 // { dg-final { scan-assembler-not {_ZN4frob5storeIiEEvT_:} } }
25