diff options
author | Anders Carlsson <andersca@mac.com> | 2011-03-09 05:09:32 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2011-03-09 05:09:32 +0000 |
commit | f25330bd88f921b6e4cae965932681f213d9d544 (patch) | |
tree | db1d30ac9ce4a8970dfd94badf291380f60318d3 /test/PCH/chain-cxx.cpp | |
parent | d26bc76c98006609002d9930f8840490e88ac5b5 (diff) |
When deserializing CXXBaseSpecifiers (and offsets), make sure to walk the chain in the correct order.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127315 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/PCH/chain-cxx.cpp')
-rw-r--r-- | test/PCH/chain-cxx.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/PCH/chain-cxx.cpp b/test/PCH/chain-cxx.cpp index 852af05d57..bf37acb298 100644 --- a/test/PCH/chain-cxx.cpp +++ b/test/PCH/chain-cxx.cpp @@ -34,6 +34,9 @@ struct S<T *> { typedef int H; }; template <typename T> struct TS2; typedef TS2<int> TS2int; +template <typename T> struct TestBaseSpecifiers { }; +template<typename T> struct TestBaseSpecifiers2 : TestBaseSpecifiers<T> { }; + //===----------------------------------------------------------------------===// #elif not defined(HEADER2) #define HEADER2 @@ -73,6 +76,9 @@ struct S<int &> { typedef int L; }; template <typename T> struct TS2 { }; +struct TestBaseSpecifiers3 { }; +struct TestBaseSpecifiers4 : TestBaseSpecifiers3 { }; + struct A { }; struct B : A { }; |