blob: 42d7d2cd8f69895f770b7333dcd054760c54e94e [file] [log] [blame]
Fariborz Jahanian92463272013-07-18 20:11:45 +00001// RUN: rm -rf %t
2// 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
3// RUN: c-arcmt-test -mt-migrate-directory %t | arcmt-test -verify-transformed-files %s.result
4// 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
5
6typedef long NSInteger;
Fariborz Jahanianb0057bb2013-07-19 01:05:49 +00007typedef unsigned long NSUInteger;
8
Fariborz Jahanian92463272013-07-18 20:11:45 +00009#define NS_ENUM(_type, _name) enum _name : _type _name; enum _name : _type
Fariborz Jahanianb0057bb2013-07-19 01:05:49 +000010#define NS_OPTIONS(_type, _name) enum _name : _type _name; enum _name : _type
Fariborz Jahanian92463272013-07-18 20:11:45 +000011
12enum {
13 blah,
14 blarg
15};
16typedef NSInteger wibble;
Fariborz Jahanianb0057bb2013-07-19 01:05:49 +000017
18enum {
19 UIViewAutoresizingNone = 0,
20 UIViewAutoresizingFlexibleLeftMargin = 1 << 0,
21 UIViewAutoresizingFlexibleWidth = 1 << 1,
22 UIViewAutoresizingFlexibleRightMargin = 1 << 2,
23 UIViewAutoresizingFlexibleTopMargin = 1 << 3,
24 UIViewAutoresizingFlexibleHeight = 1 << 4,
25 UIViewAutoresizingFlexibleBottomMargin = 1 << 5
26};
27
28typedef NSUInteger UITableViewCellStyle;
29
Fariborz Jahanianc1c44f62013-07-19 20:18:36 +000030typedef enum {
31 UIViewAnimationTransitionNone,
32 UIViewAnimationTransitionFlipFromLeft,
33 UIViewAnimationTransitionFlipFromRight,
34 UIViewAnimationTransitionCurlUp,
35 UIViewAnimationTransitionCurlDown,
36} UIViewAnimationTransition;
37
Fariborz Jahanian008ef722013-07-19 17:44:32 +000038enum {
39 UNOne,
40 UNTwo
41};
42