Debian Codegraph @

gcc/testsuite/g++.dg/modules/tdef-inst-1_a.C

raw
1 // { dg-additional-options -fmodules-ts }
2
3 // The instantiation of the *definition* of basic_string is used in
4 // importers, *after* they have instantiated a declaration of it *and*
5 // created type variants.
6
7 module;
8
9 #include "tdef-inst-1.h"
10
11 export module foo;
12 // { dg-module-cmi foo }
13
14 export inline int greeter (string const &bob)
15 {
16 return sizeof (bob); // instantiates string
17 }