gcc/testsuite/g++.dg/modules/using-23_a.C
raw| 1 | // PR c++/115194 |
| 2 | // { dg-additional-options "-fmodules-ts -Wno-global-module" } |
| 3 | |
| 4 | module; |
| 5 | |
| 6 | namespace NS1 { |
| 7 | namespace NS2 { |
| 8 | class Thing {}; |
| 9 | } // NS2 |
| 10 | using NS2::Thing; |
| 11 | } // NS1 |
| 12 | |
| 13 | export module modA; |
| 14 | |
| 15 | export |
| 16 | namespace NS1 { |
| 17 | using ::NS1::Thing; |
| 18 | namespace NS2 { } |
| 19 | } |