gcc/testsuite/g++.dg/modules/by-name-1.C
raw| 1 | // check internals by name unless SCC |
| 2 | // { dg-additional-options "-fmodules-ts -fdump-lang-module-uid" } |
| 3 | |
| 4 | export module frob; |
| 5 | // { dg-module-cmi frob } |
| 6 | |
| 7 | class X |
| 8 | { |
| 9 | int i; |
| 10 | }; |
| 11 | |
| 12 | export X *f (); |
| 13 | |
| 14 | // { dg-final { scan-lang-dump {Wrote purview:-[0-9]* type_decl:'::X'} "module" } } |
| 15 | // { dg-final { scan-lang-dump {Indirect:-[0-9]* decl's type record_type:'::X'} "module" } } |