You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
346 B
24 lines
346 B
class X {
|
|
public:
|
|
int pub;
|
|
protected:
|
|
int prot;
|
|
private:
|
|
int priv;
|
|
};
|
|
|
|
class Y : public X {
|
|
int test() {
|
|
[]() {
|
|
|
|
// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:13:1 %s -o - \
|
|
// RUN: | FileCheck %s
|
|
// CHECK: priv (InBase,Inaccessible)
|
|
// CHECK: prot (InBase)
|
|
// CHECK: pub (InBase)
|
|
};
|
|
}
|
|
};
|
|
|
|
|