summaryrefslogtreecommitdiffstats
path: root/test/PCH/chain-cxx.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2011-03-06 18:41:18 +0000
committerAnders Carlsson <andersca@mac.com>2011-03-06 18:41:18 +0000
commitc850578dbfa68cf2d2776f59a5cb0009134d970e (patch)
tree65fcb1f5df99243ba543058a994283f41d1fad63 /test/PCH/chain-cxx.cpp
parentb0ca137bf399d956a3424816c238bc2532250d17 (diff)
Write CXX base specifier offsets for chained ASTs.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127126 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/PCH/chain-cxx.cpp')
-rw-r--r--test/PCH/chain-cxx.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/PCH/chain-cxx.cpp b/test/PCH/chain-cxx.cpp
index d269de529f..852af05d57 100644
--- a/test/PCH/chain-cxx.cpp
+++ b/test/PCH/chain-cxx.cpp
@@ -73,6 +73,9 @@ struct S<int &> { typedef int L; };
template <typename T> struct TS2 { };
+struct A { };
+struct B : A { };
+
//===----------------------------------------------------------------------===//
#else
//===----------------------------------------------------------------------===//
@@ -96,6 +99,8 @@ void test() {
typedef S<int &>::L T6;
TS2int ts2;
+
+ B b;
}
//===----------------------------------------------------------------------===//