summaryrefslogtreecommitdiff
path: root/clang/test/Analysis/derived-to-base.cpp
blob: f65b9db17b6573548e8cb74665edbbda45ed99a7 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: %clang_cc1 -analyze -analyzer-checker=core -analyzer-store region %s

class A {
protected:
  int x;
};

class B : public A {
public:
  void f();
};

void B::f() {
  x = 3;
}