summaryrefslogtreecommitdiffstats
path: root/test/PCH/chain-cxx.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2011-03-09 05:09:32 +0000
committerAnders Carlsson <andersca@mac.com>2011-03-09 05:09:32 +0000
commitf25330bd88f921b6e4cae965932681f213d9d544 (patch)
treedb1d30ac9ce4a8970dfd94badf291380f60318d3 /test/PCH/chain-cxx.cpp
parentd26bc76c98006609002d9930f8840490e88ac5b5 (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.cpp6
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 { };