[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / CodeGenObjC / arc-cond-stmt.m
blobd8ee6bb084b5e401a3928059440ef4435649f5c8
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -fobjc-arc -o - %s
2 // rdar://10327068
4 @class NSString;
6 @interface NSAssertionHandler {
9 + (NSAssertionHandler *)currentHandler;
11 - (void)handleFailureInMethod:(SEL)selector object:(id)object file:(NSString *)fileName lineNumber:(int)line ,...;
13 @end
15 typedef enum
17  MWRaceOrder_MeetName,
18  MWRaceOrder_MeetPosition,
19  MWRaceOrder_MeetDistance,
20  MWRaceOrder_Name,
21  MWRaceOrder_Position,
22  MWRaceOrder_Distance,
23  MWRaceOrder_Default = MWRaceOrder_Name,
24  MWRaceOrder_MeetDefault = MWRaceOrder_MeetName,
25 } MWRaceOrder;
27 @interface MWViewMeetController
28 @property (nonatomic, assign) MWRaceOrder raceOrder;
29 @end
31 @implementation MWViewMeetController
33 - (int)orderSegment
35  switch (self.raceOrder)
36  {
38   default:
39   { [(NSAssertionHandler *)0 handleFailureInMethod:_cmd object:self file:(NSString*)0 lineNumber:192 ]; };
40    break;
41  }
43  return 0;
46 @synthesize raceOrder;
48 @end