aboutsummaryrefslogtreecommitdiff
path: root/test/ARCMT/objcmt-undefined-ns-macros.m.result
diff options
context:
space:
mode:
Diffstat (limited to 'test/ARCMT/objcmt-undefined-ns-macros.m.result')
-rw-r--r--test/ARCMT/objcmt-undefined-ns-macros.m.result26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/ARCMT/objcmt-undefined-ns-macros.m.result b/test/ARCMT/objcmt-undefined-ns-macros.m.result
new file mode 100644
index 000000000000..30277ac57d49
--- /dev/null
+++ b/test/ARCMT/objcmt-undefined-ns-macros.m.result
@@ -0,0 +1,26 @@
+// RUN: rm -rf %t
+// 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
+// RUN: c-arcmt-test -mt-migrate-directory %t | arcmt-test -verify-transformed-files %s.result
+
+// rdar://18498550
+
+typedef long NSInteger;
+#ifndef NS_ENUM
+@import Foundation;
+#endif
+typedef NS_OPTIONS(NSUInteger, UITableStyle) {
+ UIViewNone = 0x0,
+ UIViewMargin = 0x1,
+ UIViewWidth = 0x2,
+ UIViewRightMargin = 0x3,
+ UIViewBottomMargin = 0xbadbeef
+};
+
+
+typedef
+ NS_ENUM(unsigned int, NumericEnum2) { two = 1 };
+
+typedef NS_ENUM(unsigned int, NumericEnum3) { three = 1 };
+
+typedef NS_ENUM(unsigned int, NumericEnum4) { four = 1 };
+