llvm-for-llvmta/tools/clang/test/CodeCompletion/accessibility-crash.cpp

24 lines
346 B
C++
Raw Normal View History

2022-04-25 13:02:35 +02:00
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)
};
}
};