diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-12-18 20:11:37 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-12-18 20:11:37 +0000 |
commit | 461a67fa15370a9ec88f8f8a240bf7c123bb2029 (patch) | |
tree | 6942083d7d56bba40ec790a453ca58ad3baf6832 /test/Modules/using-directive-redecl.cpp | |
parent | 75c3240472ba6ac2669ee72ca67eb72d4e2851fc (diff) |
Diffstat (limited to 'test/Modules/using-directive-redecl.cpp')
-rw-r--r-- | test/Modules/using-directive-redecl.cpp | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/test/Modules/using-directive-redecl.cpp b/test/Modules/using-directive-redecl.cpp new file mode 100644 index 000000000000..94772f30a3d4 --- /dev/null +++ b/test/Modules/using-directive-redecl.cpp @@ -0,0 +1,37 @@ +// RUN: %clang_cc1 -fmodules -fmodules-local-submodule-visibility -verify %s +// expected-no-diagnostics +#pragma clang module build M +module M { module TDFNodes {} module TDFInterface {} } +#pragma clang module contents + // TDFNodes + #pragma clang module begin M.TDFNodes + namespace Detail { + namespace TDF { + class TLoopManager {}; + } + } + namespace Internal { + namespace TDF { + using namespace Detail::TDF; + } + } + #pragma clang module end + + // TDFInterface + #pragma clang module begin M.TDFInterface + #pragma clang module import M.TDFNodes + namespace Internal { + namespace TDF { + using namespace Detail::TDF; + } + } + #pragma clang module end + +#pragma clang module endbuild + +#pragma clang module import M.TDFNodes +namespace Internal { + namespace TDF { + TLoopManager * use; + } +} |