Debian Codegraph @

gcc/testsuite/g++.dg/modules/tpl-friend-17_b.C

raw
1 // PR c++/118920
2 // { dg-additional-options "-fmodules" }
3
4 #include "tpl-friend-17.h"
5 import M;
6
7 int main() {
8 // instantiating shared_ptr<int> should find previously generated
9 // out_ptr_t template from the unique_ptr<int> instantiation
10 foo<int>();
11 }