summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/cxx-decls.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-02-27 01:57:00 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-02-27 01:57:00 +0000
commitf81c2cc6ca4b728522e2d6755bfc3968167aff11 (patch)
tree22ed8ee64826f7c4f843cb3cee030d9b369f28e5 /clang/test/Modules/cxx-decls.cpp
parent84d28de62707263fb926449227929525817f536c (diff)
downloadbcm5719-llvm-f81c2cc6ca4b728522e2d6755bfc3968167aff11.tar.gz
bcm5719-llvm-f81c2cc6ca4b728522e2d6755bfc3968167aff11.zip
[modules] For an inheriting constructor, the inherited constructor is stored in
a map keyed off the canonical declaration. Don't try to set it if we're loading some non-canonical merged declaration. llvm-svn: 230716
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 109306ed79d..4064040c125 100644
--- a/clang/test/Modules/cxx-decls.cpp
+++ b/clang/test/Modules/cxx-decls.cpp
@@ -52,5 +52,7 @@ int use_namespace_alias() { return Alias::a + Alias::b; }
void use_extern_c_function_2() { ExternCFunction(); }
+InhCtorB inhctorb(2);
+
// CHECK: VarDecl [[mergeUsedFlag:0x[0-9a-f]*]] {{.*}} in cxx_decls.imported used mergeUsedFlag
// CHECK: VarDecl {{0x[0-9a-f]*}} prev [[mergeUsedFlag]] {{.*}} in cxx_decls_merged used mergeUsedFlag
OpenPOWER on IntegriCloud