gcc/testsuite/g++.dg/modules/merge-18_b.H
raw| 1 | // PR c++/116803 |
| 2 | // { dg-additional-options "-fmodule-header -fdump-lang-module" } |
| 3 | // { dg-module-cmi {} } |
| 4 | |
| 5 | import "merge-18_a.H"; |
| 6 | |
| 7 | namespace ns { |
| 8 | template <typename T> void foo() {} |
| 9 | template <typename T> const int bar = 123; |
| 10 | } |
| 11 | |
| 12 | // { dg-final { scan-lang-dump {Writing definition '::ns::template foo'} module } } |
| 13 | // { dg-final { scan-lang-dump {Writing definition '::ns::template bar'} module } } |