aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/modules/tpl-friend-9.C
blob: c7216f0f8c17093bc5620fbf5ec4a4555f51e774 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/114275
// { dg-additional-options "-fmodules-ts" }
// { dg-module-cmi M }

export module M;

template<class> struct A {
  template<class> friend struct B;
  friend void C();
};
A<int> a;
void C() {}
template<class> struct B { };