1 // RUN: %clang_analyze_cc1 -analyzer-checker=core -verify -Wno-objc-root-class %s
2 // expected-no-diagnostics
4 // Test reasoning about static locals in ObjCMethods.
5 int *getValidPtr(void);
6 @interface Radar11275803
7 - (int) useStaticInMethod;
9 @implementation Radar11275803
11 - (int) useStaticInMethod
13 static int *explInit = 0;
16 explInit = getValidPtr();
17 return *explInit; //no-warning