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