blob: e56c4cf2dd020c1bbcbeb2ff4e2f5b19bb7627a8 [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