Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenObjC / arc-cond-stmt.m
blob3043a85fea38ec59939d6caacb2b03c2c7aa394b
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -fobjc-arc -o - %s
3 @class NSString;
5 @interface NSAssertionHandler {
8 + (NSAssertionHandler *)currentHandler;
10 - (void)handleFailureInMethod:(SEL)selector object:(id)object file:(NSString *)fileName lineNumber:(int)line ,...;
12 @end
14 typedef enum
16  MWRaceOrder_MeetName,
17  MWRaceOrder_MeetPosition,
18  MWRaceOrder_MeetDistance,
19  MWRaceOrder_Name,
20  MWRaceOrder_Position,
21  MWRaceOrder_Distance,
22  MWRaceOrder_Default = MWRaceOrder_Name,
23  MWRaceOrder_MeetDefault = MWRaceOrder_MeetName,
24 } MWRaceOrder;
26 @interface MWViewMeetController
27 @property (nonatomic, assign) MWRaceOrder raceOrder;
28 @end
30 @implementation MWViewMeetController
32 - (int)orderSegment
34  switch (self.raceOrder)
35  {
37   default:
38   { [(NSAssertionHandler *)0 handleFailureInMethod:_cmd object:self file:(NSString*)0 lineNumber:192 ]; };
39    break;
40  }
42  return 0;
45 @synthesize raceOrder;
47 @end