| 1 |
// PR c++/120499 |
| 2 |
// { dg-additional-options "-fmodules -fdump-lang-module-blocks" } |
| 3 |
// { dg-module-cmi A } |
| 4 |
|
| 5 |
export module A; |
| 6 |
|
| 7 |
struct allocator { |
| 8 |
~allocator() {} |
| 9 |
}; |
| 10 |
|
| 11 |
export template <typename _Tp> |
| 12 |
struct vector { |
| 13 |
struct _Vector_impl : public allocator {}; |
| 14 |
_Vector_impl _M_impl; |
| 15 |
vector() = default; |
| 16 |
}; |
| 17 |
|
| 18 |
template <typename T> |
| 19 |
struct regex_token_iterator { |
| 20 |
vector<int> _M_subs; |
| 21 |
}; |
| 22 |
template struct regex_token_iterator<const char*>; |
| 23 |
|
| 24 |
// No definition of _Vector_impl::~_Vector_impl here (not synthesized) |
| 25 |
// { dg-final { scan-lang-dump-not {'::vector@A:1<int>::_Vector_impl@A:1<int>::__dt '} module } } |