gcc/testsuite/g++.dg/modules/using-20_a.C
raw| 1 | // { dg-additional-options "-fmodules-ts -fdump-lang-module -Wno-global-module" } |
| 2 | // { dg-final { scan-lang-dump {Writing definition '::foo::bar::baz'} module } } |
| 3 | |
| 4 | module; |
| 5 | namespace foo { |
| 6 | namespace bar { |
| 7 | struct baz { }; |
| 8 | } |
| 9 | using bar::baz; |
| 10 | } |
| 11 | export module foo; |
| 12 | namespace foo { |
| 13 | export using foo::baz; |
| 14 | } |