1 | // 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 | |
7 | typedef long NSInteger; |
8 | #ifndef NS_ENUM |
9 | @import Foundation; |
10 | #endif |
11 | typedef NS_OPTIONS(NSUInteger, UITableStyle) { |
12 | UIViewNone = 0x0, |
13 | UIViewMargin = 0x1, |
14 | UIViewWidth = 0x2, |
15 | UIViewRightMargin = 0x3, |
16 | UIViewBottomMargin = 0xbadbeef |
17 | }; |
18 | |
19 | |
20 | typedef |
21 | NS_ENUM(unsigned int, NumericEnum2) { two = 1 }; |
22 | |
23 | typedef NS_ENUM(unsigned int, NumericEnum3) { three = 1 }; |
24 | |
25 | typedef NS_ENUM(unsigned int, NumericEnum4) { four = 1 }; |
26 | |
27 | |