diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-05-19 20:59:20 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-05-19 20:59:20 +0000 |
commit | 851072efb735dcd66d1fbfaa434c2c9d7708e29a (patch) | |
tree | cfc7e71519d6586be724be73cee0593f7790fb6a /clang/test/Modules/Inputs/cxx-templates-common.h | |
parent | cb172b104a6ae03001dfc5a2971efc49cef083ab (diff) | |
download | bcm5719-llvm-851072efb735dcd66d1fbfaa434c2c9d7708e29a.tar.gz bcm5719-llvm-851072efb735dcd66d1fbfaa434c2c9d7708e29a.zip |
If two sibling modules declare the same entity, and we indirectly pull a
declaration of that entity in from one of those modules, keep track of the fact
that we've not completed the redeclaration chain yet so that we can pull the
remaining declarations in from the other module if they're needed.
llvm-svn: 209161
Diffstat (limited to 'clang/test/Modules/Inputs/cxx-templates-common.h')
-rw-r--r-- | clang/test/Modules/Inputs/cxx-templates-common.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/cxx-templates-common.h b/clang/test/Modules/Inputs/cxx-templates-common.h index efbda2bd256..4a10e358805 100644 --- a/clang/test/Modules/Inputs/cxx-templates-common.h +++ b/clang/test/Modules/Inputs/cxx-templates-common.h @@ -23,3 +23,10 @@ namespace Std { } template<typename T> struct TemplateInstantiationVisibility { typedef int type; }; + +template<typename T> struct Outer { + template<typename U> struct Inner { + void f(); + void g(); + }; +}; |