diff options
| author | Axel Naumann <Axel.Naumann@cern.ch> | 2012-10-01 07:34:47 +0000 |
|---|---|---|
| committer | Axel Naumann <Axel.Naumann@cern.ch> | 2012-10-01 07:34:47 +0000 |
| commit | a31dee2e04da90852e03628ca80949b992d4eabd (patch) | |
| tree | dc205f185026c7adf96a3247b1edac1223ffd242 /clang/test/Modules/Inputs/redecl-merge-right.h | |
| parent | 4ca8ca916ea5bb3335081ffa099bcdf2db13f080 (diff) | |
| download | bcm5719-llvm-a31dee2e04da90852e03628ca80949b992d4eabd.tar.gz bcm5719-llvm-a31dee2e04da90852e03628ca80949b992d4eabd.zip | |
Bring ASTReader and Writer into sync for the case where a canonical template specialization was written, which is non-canonical at the time of reading: force the reading of the ClassTemplateDecl if it was written.
The easiest way out is to store whether the decl was canonical at the time of writing.
Add test.
llvm-svn: 164927
Diffstat (limited to 'clang/test/Modules/Inputs/redecl-merge-right.h')
| -rw-r--r-- | clang/test/Modules/Inputs/redecl-merge-right.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/redecl-merge-right.h b/clang/test/Modules/Inputs/redecl-merge-right.h index de7aa08cfb2..695327674fb 100644 --- a/clang/test/Modules/Inputs/redecl-merge-right.h +++ b/clang/test/Modules/Inputs/redecl-merge-right.h @@ -83,6 +83,12 @@ template<typename T> class Vector { public: void push_back(const T&); }; + +template<typename T> class List; +template<> class List<bool> { +public: + void push_back(int); +}; #endif int ONE; |

