14 lines · cpp
1struct Base {2protected:3 bool bar();4};5struct Derived : Base {6};7 8struct X {9 int foo() {10 Derived(). // RUN: c-index-test -code-completion-at=%s:10:15 %s | FileCheck %s11 // CHECK: bar{{.*}}(inaccessible)12 }13};14 1struct Base {2protected:3 bool bar();4};5struct Derived : Base {6};7 8struct X {9 int foo() {10 Derived(). // RUN: c-index-test -code-completion-at=%s:10:15 %s | FileCheck %s11 // CHECK: bar{{.*}}(inaccessible)12 }13};14