gcc/testsuite/g++.dg/modules/part-7_c.C
raw| 1 | // { dg-additional-options {-fmodules-ts -fdump-lang-module-blocks} } |
| 2 | |
| 3 | export module foo; |
| 4 | // { dg-module-cmi foo } |
| 5 | import :bob; |
| 6 | export import :bill; |
| 7 | |
| 8 | int foo (frob *p) |
| 9 | { |
| 10 | return p->field; |
| 11 | } |
| 12 | |
| 13 | int foo (FROB<2> *p) |
| 14 | { |
| 15 | return p->val; |
| 16 | } |
| 17 | |
| 18 | // { dg-final { scan-lang-dump {Cluster members:\n \[0\]=decl definition '::frob@foo:bob:1'} module } } |
| 19 | // { dg-final { scan-lang-dump {Cluster members:\n \[0\]=decl definition '::template FROB@foo:bob:1'} module } } |