xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenObjC/arc-cond-stmt.m (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -fobjc-arc -o - %s
2*f4a2713aSLionel Sambuc// rdar://10327068
3*f4a2713aSLionel Sambuc
4*f4a2713aSLionel Sambuc@class NSString;
5*f4a2713aSLionel Sambuc
6*f4a2713aSLionel Sambuc@interface NSAssertionHandler {
7*f4a2713aSLionel Sambuc}
8*f4a2713aSLionel Sambuc
9*f4a2713aSLionel Sambuc+ (NSAssertionHandler *)currentHandler;
10*f4a2713aSLionel Sambuc
11*f4a2713aSLionel Sambuc- (void)handleFailureInMethod:(SEL)selector object:(id)object file:(NSString *)fileName lineNumber:(int)line ,...;
12*f4a2713aSLionel Sambuc
13*f4a2713aSLionel Sambuc@end
14*f4a2713aSLionel Sambuc
15*f4a2713aSLionel Sambuctypedef enum
16*f4a2713aSLionel Sambuc{
17*f4a2713aSLionel Sambuc MWRaceOrder_MeetName,
18*f4a2713aSLionel Sambuc MWRaceOrder_MeetPosition,
19*f4a2713aSLionel Sambuc MWRaceOrder_MeetDistance,
20*f4a2713aSLionel Sambuc MWRaceOrder_Name,
21*f4a2713aSLionel Sambuc MWRaceOrder_Position,
22*f4a2713aSLionel Sambuc MWRaceOrder_Distance,
23*f4a2713aSLionel Sambuc MWRaceOrder_Default = MWRaceOrder_Name,
24*f4a2713aSLionel Sambuc MWRaceOrder_MeetDefault = MWRaceOrder_MeetName,
25*f4a2713aSLionel Sambuc} MWRaceOrder;
26*f4a2713aSLionel Sambuc
27*f4a2713aSLionel Sambuc@interface MWViewMeetController
28*f4a2713aSLionel Sambuc@property (nonatomic, assign) MWRaceOrder raceOrder;
29*f4a2713aSLionel Sambuc@end
30*f4a2713aSLionel Sambuc
31*f4a2713aSLionel Sambuc@implementation MWViewMeetController
32*f4a2713aSLionel Sambuc
33*f4a2713aSLionel Sambuc- (int)orderSegment
34*f4a2713aSLionel Sambuc{
35*f4a2713aSLionel Sambuc switch (self.raceOrder)
36*f4a2713aSLionel Sambuc {
37*f4a2713aSLionel Sambuc
38*f4a2713aSLionel Sambuc  default:
39*f4a2713aSLionel Sambuc  { [(NSAssertionHandler *)0 handleFailureInMethod:_cmd object:self file:(NSString*)0 lineNumber:192 ]; };
40*f4a2713aSLionel Sambuc   break;
41*f4a2713aSLionel Sambuc }
42*f4a2713aSLionel Sambuc
43*f4a2713aSLionel Sambuc return 0;
44*f4a2713aSLionel Sambuc}
45*f4a2713aSLionel Sambuc
46*f4a2713aSLionel Sambuc@synthesize raceOrder;
47*f4a2713aSLionel Sambuc
48*f4a2713aSLionel Sambuc@end
49