gcc/testsuite/g++.dg/modules/using-5_a.C
raw| 1 | // { dg-additional-options "-fmodules-ts -fdump-lang-module-blocks" } |
| 2 | export module foo; |
| 3 | // { dg-module-cmi foo } |
| 4 | |
| 5 | namespace One { |
| 6 | class X; |
| 7 | } |
| 8 | |
| 9 | namespace Two { |
| 10 | using One::X; |
| 11 | } |
| 12 | |
| 13 | |
| 14 | // { dg-final { scan-lang-dump {Cluster members:\n \[0\]=decl declaration '::One::X'\n \[1\]=binding '::One::X'} module } } |
| 15 | // { dg-final { scan-lang-dump {Cluster members:\n \[0\]=using declaration '::One::X'\n \[1\]=binding '::Two::X'} module } } |