aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/modules/friend-8_a.H
blob: b07ea25adfb45a0208db257720724ece9c264f3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// PR c++/114889
// { dg-additional-options "-fmodule-header" }
// { dg-module-cmi {} }

template<class, class>
struct _Hashtable;

template<class _Key, class _Val>
struct _Map_base {
  void f() {
    _Hashtable<_Key, _Val> __h;
    __h._M_hash_code(0);
  }
};

template<class _Key, class _Value>
struct _Hashtable {
  template<class, class> friend struct _Map_base;
protected:
  void _M_hash_code(int);
};

inline _Hashtable<int, int> m;