[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / Analysis / ObjCRetSigs.m
blob97d33f9f5467b1f5ff5ff473270144abda2f8e9f
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 @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