1 // RUN: %clang_analyze_cc1 -analyzer-checker=core,alpha.core -analyzer-store=region -verify -Wno-objc-root-class %s
2 // expected-no-diagnostics
4 typedef struct Foo { int x; } Bar;
9 @implementation MyClass
16 void createFoo(void) {
18 Bar f = [obj foo]; // no-warning
21 void createFoo2(void) {
23 [obj foo]; // no-warning
24 Bar f = [obj foo]; // no-warning