blob: 2ca85699fb9d180d7a5c67b80dfc7d57299c4c3f [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,
Fariborz Jahaniand0f6f792013-07-22 18:53:45 +000020 UIViewAutoresizingFlexibleLeftMargin,
21 UIViewAutoresizingFlexibleWidth,
22 UIViewAutoresizingFlexibleRightMargin,
23 UIViewAutoresizingFlexibleTopMargin,
24 UIViewAutoresizingFlexibleHeight,
25 UIViewAutoresizingFlexibleBottomMargin
Fariborz Jahanianb0057bb2013-07-19 01:05:49 +000026};
Fariborz Jahanianb0057bb2013-07-19 01:05:49 +000027typedef NSUInteger UITableViewCellStyle;
28
Fariborz Jahanianc1c44f62013-07-19 20:18:36 +000029typedef enum {
30 UIViewAnimationTransitionNone,
31 UIViewAnimationTransitionFlipFromLeft,
32 UIViewAnimationTransitionFlipFromRight,
33 UIViewAnimationTransitionCurlUp,
34 UIViewAnimationTransitionCurlDown,
35} UIViewAnimationTransition;
36
Fariborz Jahaniand0f6f792013-07-22 18:53:45 +000037typedef enum {
38 UIViewOne = 0,
39 UIViewTwo = 1 << 0,
40 UIViewThree = 1 << 1,
41 UIViewFour = 1 << 2,
42 UIViewFive = 1 << 3,
43 UIViewSix = 1 << 4,
44 UIViewSeven = 1 << 5
45} UITableView;
46
47enum {
48 UIOne = 0,
49 UITwo = 0x1,
50 UIthree = 0x8,
51 UIFour = 0x100
52};
53typedef NSInteger UI;
54
55typedef enum {
56 UIP2One = 0,
57 UIP2Two = 0x1,
58 UIP2three = 0x8,
59 UIP2Four = 0x100
60} UIPOWER2;
61
Fariborz Jahanian008ef722013-07-19 17:44:32 +000062enum {
63 UNOne,
64 UNTwo
65};
66