1 // RUN: %clang_analyze_cc1 -analyzer-checker=core,alpha.core -analyzer-checker=osx.cocoa.IncompatibleMethodTypes -verify -Wno-objc-root-class %s
3 int printf(const char *, ...);
9 @interface MySub : MyBase{}
13 @implementation MyBase
15 printf("Called MyBase -length;\n");
21 -(double)length{ // expected-warning{{types are incompatible}}
22 printf("Called MySub -length;\n");