StmtPrinter: factor out arg printing code to PrintCallArgs
[clang.git] / test / Analysis / ObjCRetSigs.m
bloba76d7b979ee00cc08d933d96905cf1fc9c8bee2c
1 // RUN: %clang_cc1 -analyze -analyzer-experimental-internal-checks -analyzer-check-objc-methodsigs -verify %s
3 int printf(const char *, ...);
5 @interface MyBase
6 -(long long)length;
7 @end
9 @interface MySub : MyBase{}
10 -(double)length;
11 @end
13 @implementation MyBase
14 -(long long)length{
15    printf("Called MyBase -length;\n");
16    return 3;
18 @end
20 @implementation MySub
21 -(double)length{  // expected-warning{{types are incompatible}}
22    printf("Called MySub -length;\n");
23    return 3.3;
25 @end