summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/cxx-decls.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-09-03 23:11:22 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-09-03 23:11:22 +0000
commitf463436d9c02deb870f2ecbba4a69a96f6f9b3d7 (patch)
tree5810630f0ac6f5e0529de79d06c3179787871727 /clang/test/Modules/cxx-decls.cpp
parentc6ab01eccae05aee4bae81a875a6eb88907247c5 (diff)
downloadbcm5719-llvm-f463436d9c02deb870f2ecbba4a69a96f6f9b3d7.tar.gz
bcm5719-llvm-f463436d9c02deb870f2ecbba4a69a96f6f9b3d7.zip
[modules] Make NamespaceAliasDecl redeclarable, as it should be. This fixes
merging of namespace aliases across modules and improves source fidelity. Incidentally also fixes PR20816. llvm-svn: 217103
Diffstat (limited to 'clang/test/Modules/cxx-decls.cpp')
-rw-r--r--clang/test/Modules/cxx-decls.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/Modules/cxx-decls.cpp b/clang/test/Modules/cxx-decls.cpp
index 1fb550ba280..109306ed79d 100644
--- a/clang/test/Modules/cxx-decls.cpp
+++ b/clang/test/Modules/cxx-decls.cpp
@@ -46,6 +46,8 @@ int overrides_virtual_functions_test =
void use_extern_c_function() { ExternCFunction(); }
+int use_namespace_alias() { return Alias::a + Alias::b; }
+
@import cxx_decls_premerged;
void use_extern_c_function_2() { ExternCFunction(); }
OpenPOWER on IntegriCloud