[RISCV] Simplify usage of SplatPat_simm5_plus1. NFC (#125340)
[llvm-project.git] / clang / test / Analysis / ObjCRetSigs.m
blobf92506a8341958286f75ae5109a2d2fbf1788971
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 *, ...);
5 @interface MyBase
6 -(long long)length;
7 -(long long)suppressedLength;
8 @end
10 @interface MySub : MyBase{}
11 -(double)length;
12 -(double)suppressedLength;
13 @end
15 @implementation MyBase
16 -(long long)length{
17    printf("Called MyBase -length;\n");
18    return 3;
20 -(long long)suppressedLength{
21    printf("Called MyBase -length;\n");
22    return 3;
24 @end
26 @implementation MySub
27 -(double)length{  // expected-warning{{types are incompatible}}
28    printf("Called MySub -length;\n");
29    return 3.3;
31 -(double)suppressedLength [[clang::suppress]]{ // no-warning
32    printf("Called MySub -length;\n");
33    return 3.3;
35 @end