diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:04:05 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2019-01-19 10:04:05 +0000 |
commit | 676fbe8105eeb6ff4bb2ed261cb212fcfdbe7b63 (patch) | |
tree | 02a1ac369cb734d0abfa5000dd86e5b7797e6a74 /test/Index/index-template-specialization.cpp | |
parent | c7e70c433efc6953dc3888b9fbf9f3512d7da2b0 (diff) |
Diffstat (limited to 'test/Index/index-template-specialization.cpp')
-rw-r--r-- | test/Index/index-template-specialization.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Index/index-template-specialization.cpp b/test/Index/index-template-specialization.cpp index d11754113c46b..d50da0f2d63d8 100644 --- a/test/Index/index-template-specialization.cpp +++ b/test/Index/index-template-specialization.cpp @@ -9,6 +9,12 @@ void g() { foo.f(0); } +template <typename T> +struct B {}; + +template <typename T> +struct D : B<T> {}; + // FIXME: if c-index-test uses OrigD for symbol info, refererences below should // refer to template specialization decls. // RUN: env CINDEXTEST_INDEXIMPLICITTEMPLATEINSTANTIATIONS=1 c-index-test -index-file %s | FileCheck %s @@ -17,3 +23,7 @@ void g() { // CHECK-NEXT: [indexDeclaration]: kind: function | name: g // CHECK-NEXT: [indexEntityReference]: kind: c++-class-template | name: Foo | USR: c:@ST>1#T@Foo // CHECK-NEXT: [indexEntityReference]: kind: c++-instance-method | name: f | USR: c:@ST>1#T@Foo@F@f#t0.0# + +// CHECK: [indexDeclaration]: kind: c++-class-template | name: D +// CHECK-NEXT: <base>: kind: c++-class-template | name: B +// CHECK-NEXT: [indexEntityReference]: kind: c++-class-template | name: B |