brintos

brintos / llvm-project-archived public Read only

0
0
Text · 585 B · b5b1aa4 Raw
30 lines · plain
1// RUN: %clang_cc1 -rewrite-objc -fobjc-runtime=macosx-fragile-10.5  -o - %s2 3typedef unsigned int uint32_t;4 5typedef struct {6    union {7        uint32_t daysOfWeek;8        uint32_t dayOfMonth;9    };10    uint32_t nthOccurrence;11} OSPatternSpecificData;12 13@interface NSNumber14+ (NSNumber *)numberWithLong:(long)value;15@end16 17@interface OSRecurrence  {18    OSPatternSpecificData _pts;19}20- (void)_setTypeSpecificInfoOnRecord;21@end22 23@implementation OSRecurrence24- (void)_setTypeSpecificInfoOnRecord25{26    [NSNumber numberWithLong:(_pts.dayOfMonth >= 31 ? -1 : _pts.dayOfMonth)];27}28@end29 30