diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-08-28 05:44:07 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-08-28 05:44:07 +0000 |
| commit | 01bdb7a971513549979abc48596cf6741189b5de (patch) | |
| tree | 4bfcff792d168b04e6277dcedce84a139f231313 /clang/test/Modules/Inputs/cxx-templates-b.h | |
| parent | ee978203e6fad870e045a44bcef028bd97910ba3 (diff) | |
| download | bcm5719-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.h | 5 |
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; |

