(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
modules/
pr99294_a.C
// PR 99294, ICE with -fno-module-lazy on class completeness
// { dg-additional-options -fmodules-ts }

// The instantiation of the *definition* of basic_string is used in
// importers, *after* they have instantiated a declaration of it *and*
// created type variants.

module;

#include "pr99294.h"

export module foo;
// { dg-module-cmi foo }

export inline int greeter (string const &bob)
{
  return sizeof (bob); // instantiates string
}