Debian Codegraph @

gcc/testsuite/g++.dg/modules/tpl-friend-11_a.C

raw
1 // PR c++/114275
2 // { dg-additional-options "-fmodules-ts -Wno-global-module" }
3 // { dg-module-cmi M }
4
5 module;
6
7 template <typename... _Elements> struct T;
8
9 template <typename H> struct T<H> {
10 template <typename...> friend struct T;
11 };
12
13 export module M;
14 export template <typename=void> void fun() { T<int> t; }