Fariborz Jahanian | 9246327 | 2013-07-18 20:11:45 +0000 | [diff] [blame] | 1 | // 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 | |
| 6 | typedef long NSInteger; |
Fariborz Jahanian | b0057bb | 2013-07-19 01:05:49 +0000 | [diff] [blame] | 7 | typedef unsigned long NSUInteger; |
| 8 | |
Fariborz Jahanian | 9246327 | 2013-07-18 20:11:45 +0000 | [diff] [blame] | 9 | #define NS_ENUM(_type, _name) enum _name : _type _name; enum _name : _type |
Fariborz Jahanian | b0057bb | 2013-07-19 01:05:49 +0000 | [diff] [blame] | 10 | #define NS_OPTIONS(_type, _name) enum _name : _type _name; enum _name : _type |
Fariborz Jahanian | 9246327 | 2013-07-18 20:11:45 +0000 | [diff] [blame] | 11 | |
| 12 | enum { |
| 13 | blah, |
| 14 | blarg |
| 15 | }; |
| 16 | typedef NSInteger wibble; |
Fariborz Jahanian | b0057bb | 2013-07-19 01:05:49 +0000 | [diff] [blame] | 17 | |
| 18 | enum { |
| 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 | |
| 28 | typedef NSUInteger UITableViewCellStyle; |
| 29 | |
Fariborz Jahanian | c1c44f6 | 2013-07-19 20:18:36 +0000 | [diff] [blame] | 30 | typedef enum { |
| 31 | UIViewAnimationTransitionNone, |
| 32 | UIViewAnimationTransitionFlipFromLeft, |
| 33 | UIViewAnimationTransitionFlipFromRight, |
| 34 | UIViewAnimationTransitionCurlUp, |
| 35 | UIViewAnimationTransitionCurlDown, |
| 36 | } UIViewAnimationTransition; |
| 37 | |
Fariborz Jahanian | 008ef72 | 2013-07-19 17:44:32 +0000 | [diff] [blame] | 38 | enum { |
| 39 | UNOne, |
| 40 | UNTwo |
| 41 | }; |
| 42 | |