diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-02-09 18:31:22 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-02-09 18:31:22 +0000 |
commit | 8e4bc1ec61f5895d10dba3e6212d6b505c8caca7 (patch) | |
tree | f031c16d833645317694d0d92474cffaddab5c67 | |
parent | 91d521de48f9650a1a87c67f19996c4af5b85f1b (diff) |
[libclang] Add a libclang test I neglected to commit.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150193 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Index/index-suppress-refs.cpp | 12 | ||||
-rw-r--r-- | test/Index/index-suppress-refs.hpp | 3 |
2 files changed, 15 insertions, 0 deletions
diff --git a/test/Index/index-suppress-refs.cpp b/test/Index/index-suppress-refs.cpp new file mode 100644 index 0000000000..113dd4076c --- /dev/null +++ b/test/Index/index-suppress-refs.cpp @@ -0,0 +1,12 @@ + +#include "index-suppress-refs.hpp" + +class Sub : B1, B2 { + typedef B1 Base1; + typedef B2 Base2; +}; + +// RUN: env CINDEXTEST_SUPPRESSREFS=1 c-index-test -index-file %s | FileCheck %s +// CHECK: [indexDeclaration]: kind: c++-class | name: Sub +// CHECK-NOT: [indexEntityReference]: kind: c++-class | name: B1 +// CHECK-NOT: [indexEntityReference]: kind: c++-class | name: B2 diff --git a/test/Index/index-suppress-refs.hpp b/test/Index/index-suppress-refs.hpp new file mode 100644 index 0000000000..4aab08bf1c --- /dev/null +++ b/test/Index/index-suppress-refs.hpp @@ -0,0 +1,3 @@ + +class B1 {}; +class B2 {}; |