gcc/testsuite/g++.dg/modules/using-22_b.C
raw| 1 | // { dg-additional-options "-fmodules-ts" } |
| 2 | |
| 3 | import std; |
| 4 | |
| 5 | int main() |
| 6 | { |
| 7 | std::basic_string<char> s; |
| 8 | |
| 9 | // The inline namespace should not be exported, only the 'using' in std. |
| 10 | std::__cxx11::basic_string<char> s2; // { dg-error "has not been declared" } |
| 11 | // The non-exported using should also not be visible. |
| 12 | foo::basic_string<char> s3; // { dg-error "has not been declared" } |
| 13 | } |
| 14 | |
| 15 | // { dg-prune-output "expected primary-expression" } |