summaryrefslogtreecommitdiff
path: root/test/ARCMT
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2014-09-15 16:41:47 +0000
committerFariborz Jahanian <fjahanian@apple.com>2014-09-15 16:41:47 +0000
commit57129e595a4d48191e1d43bc56c7bd19300cb4c2 (patch)
tree6cc08a10bce388a604f65679a11751656f926ad5 /test/ARCMT
parent6eb5757e251eb9fc4a6cf0c5762867b6493f53f8 (diff)
Objective-C SDK modernizer. Do not modernize an enum
which already has the underlying interger type specification. // rdar://1826225 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@217783 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ARCMT')
-rw-r--r--test/ARCMT/objcmt-ns-macros.m8
-rw-r--r--test/ARCMT/objcmt-ns-macros.m.result8
2 files changed, 16 insertions, 0 deletions
diff --git a/test/ARCMT/objcmt-ns-macros.m b/test/ARCMT/objcmt-ns-macros.m
index 1bf55d8ed4..851c490758 100644
--- a/test/ARCMT/objcmt-ns-macros.m
+++ b/test/ARCMT/objcmt-ns-macros.m
@@ -294,3 +294,11 @@ enum {
NSWindowToolbarButton,
NSWindowDocumentIconButton
};
+
+// rdar://18262255
+typedef enum : NSUInteger {
+ ThingOne,
+ ThingTwo,
+ ThingThree,
+} Thing;
+
diff --git a/test/ARCMT/objcmt-ns-macros.m.result b/test/ARCMT/objcmt-ns-macros.m.result
index 0b640ac356..003b3c7f2a 100644
--- a/test/ARCMT/objcmt-ns-macros.m.result
+++ b/test/ARCMT/objcmt-ns-macros.m.result
@@ -277,3 +277,11 @@ typedef NS_ENUM(NSUInteger, NSSelectionDirection) {
};
// standard window buttons
+
+// rdar://18262255
+typedef enum : NSUInteger {
+ ThingOne,
+ ThingTwo,
+ ThingThree,
+} Thing;
+