// PR c++/118920 // { dg-additional-options "-fmodules" } #include "tpl-friend-17.h" import M; int main() { // instantiating shared_ptr should find previously generated // out_ptr_t template from the unique_ptr instantiation foo(); }