summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/Inputs/cxx-templates-b.h
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-08-28 05:44:07 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-08-28 05:44:07 +0000
commit01bdb7a971513549979abc48596cf6741189b5de (patch)
tree4bfcff792d168b04e6277dcedce84a139f231313 /clang/test/Modules/Inputs/cxx-templates-b.h
parentee978203e6fad870e045a44bcef028bd97910ba3 (diff)
downloadbcm5719-llvm-01bdb7a971513549979abc48596cf6741189b5de.tar.gz
bcm5719-llvm-01bdb7a971513549979abc48596cf6741189b5de.zip
[modules] When completing the redecl chain for an anonymous declaration in a
merged context, pull in the lexical decls in that context, since one of them may complete the redecl chain. llvm-svn: 216652
Diffstat (limited to 'clang/test/Modules/Inputs/cxx-templates-b.h')
-rw-r--r--clang/test/Modules/Inputs/cxx-templates-b.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/test/Modules/Inputs/cxx-templates-b.h b/clang/test/Modules/Inputs/cxx-templates-b.h
index 632a55b72e3..1fd6fd42316 100644
--- a/clang/test/Modules/Inputs/cxx-templates-b.h
+++ b/clang/test/Modules/Inputs/cxx-templates-b.h
@@ -71,7 +71,10 @@ template<typename U> using AliasTemplate = U;
void InstantiateWithAliasTemplate(WithAliasTemplate<int>::X<char>);
inline int InstantiateWithAnonymousDeclsB(WithAnonymousDecls<int> x) {
- return (x.k ? x.a : x.b) + (x.k ? x.s.c : x.s.d);
+ return (x.k ? x.a : x.b) + (x.k ? x.s.c : x.s.d) + x.e;
+}
+inline int InstantiateWithAnonymousDeclsB2(WithAnonymousDecls<char> x) {
+ return (x.k ? x.a : x.b) + (x.k ? x.s.c : x.s.d) + x.e;
}
@import cxx_templates_a;
OpenPOWER on IntegriCloud