gcc/testsuite/g++.dg/modules/using-22_a.C
raw| 1 | // PR c++/114683 |
| 2 | // { dg-additional-options "-fmodules-ts -Wno-global-module" } |
| 3 | |
| 4 | module; |
| 5 | |
| 6 | namespace std |
| 7 | { |
| 8 | inline namespace __cxx11 |
| 9 | { |
| 10 | template <typename T> |
| 11 | struct basic_string{}; |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | namespace foo { |
| 16 | using std::basic_string; |
| 17 | } |
| 18 | |
| 19 | export module std; |
| 20 | |
| 21 | export namespace std |
| 22 | { |
| 23 | using std::basic_string; |
| 24 | } |