blob: 91368f3cdcc70be0a1fc240b74abdee90ce11a42 [file] [log] [blame]
// PR c++/114630
// { dg-additional-options "-fmodules-ts -Wno-global-module -fdump-lang-module" }
// { dg-module-cmi M }
module;
template <typename> struct allocator {
allocator() {}
};
export module M;
template class allocator<wchar_t>;
// allocator is reachable because the explicit instantiation is in purview.
// { dg-final { scan-lang-dump {Wrote declaration[^\n]*allocator} module } }