xref: /llvm-project/clang/test/Index/complete-access-checks-crash.cpp (revision 55b1b157b67c90b8e1adb70226fb9b39200eaf40)
1 struct Base {
2 protected:
3   bool bar();
4 };
5 struct Derived : Base {
6 };
7 
8 struct X {
fooX9   int foo() {
10     Derived(). // RUN: c-index-test -code-completion-at=%s:10:15 %s | FileCheck %s
11     // CHECK: bar{{.*}}(inaccessible)
12   }
13 };
14