gcc/testsuite/g++.dg/modules/tpl-friend-10_a.C
raw| 1 | // PR c++/105320 |
| 2 | // { dg-additional-options "-fmodules-ts -Wno-global-module" } |
| 3 | // { dg-module-cmi test_support } |
| 4 | |
| 5 | module; |
| 6 | template<class> struct _Sp_atomic; |
| 7 | template<class> struct shared_ptr { |
| 8 | template<class> friend struct _Sp_atomic; |
| 9 | using atomic_type = _Sp_atomic<int>; |
| 10 | }; |
| 11 | export module test_support; |
| 12 | export |
| 13 | template<class T> struct A { |
| 14 | shared_ptr<T> data; |
| 15 | }; |