Mercurial > hg > CbC > CbC_llvm
view clang/test/Rewriter/rewrite-anonymous-union.m @ 180:680fa57a2f20
fix compile errors.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 30 May 2020 17:44:06 +0900 |
parents | 1d019706d866 |
children |
line wrap: on
line source
// RUN: %clang_cc1 -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 -o - %s // rdar://6948022 typedef unsigned int uint32_t; typedef struct { union { uint32_t daysOfWeek; uint32_t dayOfMonth; }; uint32_t nthOccurrence; } OSPatternSpecificData; @interface NSNumber + (NSNumber *)numberWithLong:(long)value; @end @interface OSRecurrence { OSPatternSpecificData _pts; } - (void)_setTypeSpecificInfoOnRecord; @end @implementation OSRecurrence - (void)_setTypeSpecificInfoOnRecord { [NSNumber numberWithLong:(_pts.dayOfMonth >= 31 ? -1 : _pts.dayOfMonth)]; } @end