2013-07-19 04:11:45 +08:00
|
|
|
// RUN: rm -rf %t
|
|
|
|
// RUN: %clang_cc1 -objcmt-migrate-property -mt-migrate-directory %t %s -x objective-c -fobjc-runtime-has-weak -fobjc-arc -fobjc-default-synthesize-properties -triple x86_64-apple-darwin11
|
|
|
|
// RUN: c-arcmt-test -mt-migrate-directory %t | arcmt-test -verify-transformed-files %s.result
|
|
|
|
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -x objective-c -fobjc-runtime-has-weak -fobjc-arc -fobjc-default-synthesize-properties %s.result
|
|
|
|
|
|
|
|
typedef long NSInteger;
|
2013-07-19 09:05:49 +08:00
|
|
|
typedef unsigned long NSUInteger;
|
|
|
|
|
2013-07-19 04:11:45 +08:00
|
|
|
#define NS_ENUM(_type, _name) enum _name : _type _name; enum _name : _type
|
2013-07-19 09:05:49 +08:00
|
|
|
#define NS_OPTIONS(_type, _name) enum _name : _type _name; enum _name : _type
|
2013-07-19 04:11:45 +08:00
|
|
|
|
|
|
|
typedef NS_ENUM(NSInteger, wibble) {
|
|
|
|
blah,
|
|
|
|
blarg
|
|
|
|
};
|
2013-07-19 06:17:33 +08:00
|
|
|
|
2013-07-19 09:05:49 +08:00
|
|
|
|
|
|
|
typedef NS_OPTIONS(NSUInteger, UITableViewCellStyle) {
|
|
|
|
UIViewAutoresizingNone = 0,
|
|
|
|
UIViewAutoresizingFlexibleLeftMargin = 1 << 0,
|
|
|
|
UIViewAutoresizingFlexibleWidth = 1 << 1,
|
|
|
|
UIViewAutoresizingFlexibleRightMargin = 1 << 2,
|
|
|
|
UIViewAutoresizingFlexibleTopMargin = 1 << 3,
|
|
|
|
UIViewAutoresizingFlexibleHeight = 1 << 4,
|
|
|
|
UIViewAutoresizingFlexibleBottomMargin = 1 << 5
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-20 04:18:36 +08:00
|
|
|
typedef NS_ENUM(NSInteger, UIViewAnimationTransition) {
|
|
|
|
UIViewAnimationTransitionNone,
|
|
|
|
UIViewAnimationTransitionFlipFromLeft,
|
|
|
|
UIViewAnimationTransitionFlipFromRight,
|
|
|
|
UIViewAnimationTransitionCurlUp,
|
|
|
|
UIViewAnimationTransitionCurlDown,
|
|
|
|
} ;
|
|
|
|
|
2013-07-20 01:44:32 +08:00
|
|
|
enum {
|
|
|
|
UNOne,
|
|
|
|
UNTwo
|
|
|
|
};
|
|
|
|
|