2 // RUN: %clang_cc1 -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
5 #define NS_ENUM(_type, _name) enum _name : _type _name; enum _name : _type
6 #define NS_OPTIONS(_type, _name) enum _name : _type _name; enum _name : _type
7 typedef long NSInteger;
9 typedef enum : NSInteger {five} ApplicableEnum;
11 typedef unsigned long mytd;
13 #define MY_ENUM(name, type, ...) typedef enum : type { __VA_ARGS__ } name##_t
14 MY_ENUM(MyEnum, unsigned int, One);