1// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -fobjc-arc -o - %s
2// rdar://10327068
3
4@class NSString;
5
6@interface NSAssertionHandler {
7}
8
9+ (NSAssertionHandler *)currentHandler;
10
11- (void)handleFailureInMethod:(SEL)selector object:(id)object file:(NSString *)fileName lineNumber:(int)line ,...;
12
13@end
14
15typedef enum
16{
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;
26
27@interface MWViewMeetController
28@property (nonatomic, assign) MWRaceOrder raceOrder;
29@end
30
31@implementation MWViewMeetController
32
33- (int)orderSegment
34{
35 switch (self.raceOrder)
36 {
37
38  default:
39  { [(NSAssertionHandler *)0 handleFailureInMethod:_cmd object:self file:(NSString*)0 lineNumber:192 ]; };
40   break;
41 }
42
43 return 0;
44}
45
46@synthesize raceOrder;
47
48@end
49