From: Argyrios Kyrtzidis Date: Thu, 9 Feb 2012 18:31:22 +0000 (+0000) Subject: [libclang] Add a libclang test I neglected to commit. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e4bc1ec61f5895d10dba3e6212d6b505c8caca7;p=clang [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 --- 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 {};