view clang/test/CodeGenObjC/arc-cond-stmt.m @ 206:f17a3b42b08b

Added tag before-12 for changeset b7591485f4cd
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 07 Jun 2021 21:25:57 +0900 (2021-06-07)
parents 1d019706d866
children
line wrap: on
line source
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -fobjc-arc -o - %s
// rdar://10327068

@class NSString;

@interface NSAssertionHandler {
}

+ (NSAssertionHandler *)currentHandler;

- (void)handleFailureInMethod:(SEL)selector object:(id)object file:(NSString *)fileName lineNumber:(int)line ,...;

@end

typedef enum
{
 MWRaceOrder_MeetName,
 MWRaceOrder_MeetPosition,
 MWRaceOrder_MeetDistance,
 MWRaceOrder_Name,
 MWRaceOrder_Position,
 MWRaceOrder_Distance,
 MWRaceOrder_Default = MWRaceOrder_Name,
 MWRaceOrder_MeetDefault = MWRaceOrder_MeetName,
} MWRaceOrder;

@interface MWViewMeetController
@property (nonatomic, assign) MWRaceOrder raceOrder;
@end

@implementation MWViewMeetController

- (int)orderSegment
{
 switch (self.raceOrder)
 {

  default:
  { [(NSAssertionHandler *)0 handleFailureInMethod:_cmd object:self file:(NSString*)0 lineNumber:192 ]; };
   break;
 }

 return 0;
}

@synthesize raceOrder;

@end