summaryrefslogtreecommitdiff
path: root/clang/test/Index/index-suppress-refs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Index/index-suppress-refs.cpp')
-rw-r--r--clang/test/Index/index-suppress-refs.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/Index/index-suppress-refs.cpp b/clang/test/Index/index-suppress-refs.cpp
new file mode 100644
index 0000000..113dd40
--- /dev/null
+++ b/clang/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