Debian Codegraph @

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

raw
1 // { dg-additional-options -fmodules-ts }
2
3 export module foo;
4 // { dg-module-cmi foo }
5
6 template<typename _Tp>
7 class new_allocator
8 {
9 template<typename _Up>
10 friend bool
11 operator!=(const new_allocator&, const new_allocator<_Up>&)
12 noexcept
13 { return false; }
14 };
15
16 new_allocator<char> x;