blob: 30277ac57d49c9db15a21b012d8e089563dfa834 [file] [log] [blame]
Fariborz Jahanian80ebf8d2014-10-07 19:01:46 +00001// RUN: rm -rf %t
2// RUN: %clang_cc1 -fmodules -objcmt-migrate-ns-macros -mt-migrate-directory %t %s -x objective-c -fobjc-runtime-has-weak -fobjc-arc -triple x86_64-apple-darwin11
3// RUN: c-arcmt-test -mt-migrate-directory %t | arcmt-test -verify-transformed-files %s.result
4
5// rdar://18498550
6
7typedef long NSInteger;
Fariborz Jahaniand2241bf2014-10-09 22:04:27 +00008#ifndef NS_ENUM
Fariborz Jahanian80ebf8d2014-10-07 19:01:46 +00009@import Foundation;
Fariborz Jahaniand2241bf2014-10-09 22:04:27 +000010#endif
Fariborz Jahanian80ebf8d2014-10-07 19:01:46 +000011typedef NS_OPTIONS(NSUInteger, UITableStyle) {
12 UIViewNone = 0x0,
13 UIViewMargin = 0x1,
14 UIViewWidth = 0x2,
15 UIViewRightMargin = 0x3,
16 UIViewBottomMargin = 0xbadbeef
17};
18
19
20typedef
Fariborz Jahanian1406c872014-12-10 18:25:24 +000021 NS_ENUM(unsigned int, NumericEnum2) { two = 1 };
Fariborz Jahanian80ebf8d2014-10-07 19:01:46 +000022
Fariborz Jahanian1406c872014-12-10 18:25:24 +000023typedef NS_ENUM(unsigned int, NumericEnum3) { three = 1 };
Fariborz Jahanian80ebf8d2014-10-07 19:01:46 +000024
Fariborz Jahanian1406c872014-12-10 18:25:24 +000025typedef NS_ENUM(unsigned int, NumericEnum4) { four = 1 };
Fariborz Jahanian80ebf8d2014-10-07 19:01:46 +000026