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