gcc/testsuite/g++.dg/modules/using-25_a.C
raw| 1 | // { dg-additional-options "-fmodules-ts -Wno-global-module" } |
| 2 | // { dg-module-cmi M } |
| 3 | |
| 4 | module; |
| 5 | namespace A { |
| 6 | enum E1 { Exposed_1, Hidden_1 }; |
| 7 | enum E2 { Exposed_2, Hidden_2 }; |
| 8 | } |
| 9 | export module M; |
| 10 | namespace A { |
| 11 | export using E1::Exposed_1; |
| 12 | } |
| 13 | namespace B { |
| 14 | export using A::E2::Exposed_2; |
| 15 | } |