| 1 |
// PR c++/120125 |
| 2 |
// { dg-additional-options "-fmodules -fdeclone-ctor-dtor" } |
| 3 |
// { dg-module-cmi M } |
| 4 |
|
| 5 |
export module M; |
| 6 |
|
| 7 |
void foo(); |
| 8 |
export template <typename _Tp> struct __shared_ptr { |
| 9 |
inline __shared_ptr() { foo(); } |
| 10 |
}; |
| 11 |
|
| 12 |
template class __shared_ptr<int>; |