diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-03-26 15:52:37 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-03-26 15:52:37 +0000 |
commit | 9f21889a7d5b0782ca2335833fa5bc38abdaa45c (patch) | |
tree | 9289e93dc57d709f744d13bdeb9c516d89fd88a8 /clang/test/PCH/cxx-templates.cpp | |
parent | e6f5123e16debe7b6894827aec14f42ecddd89bf (diff) | |
download | bcm5719-llvm-9f21889a7d5b0782ca2335833fa5bc38abdaa45c.tar.gz bcm5719-llvm-9f21889a7d5b0782ca2335833fa5bc38abdaa45c.zip |
Canonicalize the declaration we write to a PCH file for an
InjectedClassNameType; otherwise, it won't be properly wired to the
original (canonical) declaration when it is deserialized. Fixes
<rdar://problem/11112464>.
llvm-svn: 153442
Diffstat (limited to 'clang/test/PCH/cxx-templates.cpp')
-rw-r--r-- | clang/test/PCH/cxx-templates.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/PCH/cxx-templates.cpp b/clang/test/PCH/cxx-templates.cpp index 982fc67e4e8..7ce247721f8 100644 --- a/clang/test/PCH/cxx-templates.cpp +++ b/clang/test/PCH/cxx-templates.cpp @@ -62,3 +62,9 @@ namespace Test1 { } }; } + +template< typename D > +Foo< D >& Foo< D >::operator=( const Foo& other ) +{ + return *this; +} |