// RUN: %clang_cc1 -analyze -analyzer-checker=core -analyzer-store region %sclassA{protected:intx;};classB:publicA{public:voidf();};voidB::f(){x=3;}classC:publicB{public:voidg(){// This used to crash because we are upcasting through two bases.x=5;}};