hanchenye-llvm-project/clang/test/Analysis/derived-to-base.cpp

16 lines
184 B
C++

// RUN: %clang_cc1 -analyze -analyzer-check-objc-mem -analyzer-store region %s
class A {
protected:
int x;
};
class B : public A {
public:
void f();
};
void B::f() {
x = 3;
}