blob: 866e4d0e0f15fa709d83ffa463581d3ec513bc08 [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
21 NS_ENUM(NSInteger, NumericEnum2) { two = 1 };
22
23typedef NS_ENUM(NSInteger, NumericEnum3) { three = 1 };
24
25typedef NS_ENUM(NSInteger, NumericEnum4) { four = 1 };
26