| 1 |
// { dg-additional-options "-fmodules-ts -fdump-lang-module" } |
| 2 |
|
| 3 |
module foo; |
| 4 |
|
| 5 |
template class basic_streambuf<char>; |
| 6 |
|
| 7 |
template<typename _CharT> class basic_ios |
| 8 |
{ |
| 9 |
public: |
| 10 |
static void frob (basic_streambuf<_CharT> *p, _CharT val) |
| 11 |
{ |
| 12 |
p->member = val; |
| 13 |
} |
| 14 |
}; |
| 15 |
|
| 16 |
void bill (basic_streambuf<char> *p) |
| 17 |
{ |
| 18 |
basic_ios<char>::frob (p, 5); |
| 19 |
} |
| 20 |
|
| 21 |
// { dg-final { scan-lang-dump {Lazily binding '::basic_streambuf'@'foo' section:} module } } |
| 22 |
// { dg-final { scan-lang-dump {Loading entity foo\[0\] section:1} module } } |
| 23 |
// { dg-final { scan-lang-dump {Loading entity foo\[1\] section:2} module } } |