24 lines · cpp
1class X {2public:3 int pub;4protected:5 int prot;6private:7 int priv;8};9 10class Y : public X {11 int test() {12 []() {13 14 // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-1):1 %s -o - \15 // RUN: | FileCheck %s16 // CHECK: priv (InBase,Inaccessible)17 // CHECK: prot (InBase)18 // CHECK: pub (InBase)19 };20 }21};22 23 24