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 greeter(string const & bob)14export inline int greeter (string const &bob) 15 { 16 return sizeof (bob); // instantiates string 17 } 18