gcc/testsuite/g++.dg/modules/using-19_a.C
raw| 1 | // { dg-additional-options "-fmodules-ts -Wno-global-module" } |
| 2 | // { dg-module-cmi M } |
| 3 | |
| 4 | module; |
| 5 | |
| 6 | namespace hidden { |
| 7 | struct S {}; |
| 8 | enum E { e }; |
| 9 | void f(); |
| 10 | } |
| 11 | |
| 12 | export module M; |
| 13 | export namespace exposed { |
| 14 | using hidden::S; |
| 15 | using hidden::E; |
| 16 | using hidden::e; |
| 17 | using hidden::f; |
| 18 | } |