1// RUN: rm -rf %t
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
4
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
7typedef long NSInteger;
8
9typedef NS_ENUM(NSInteger, ApplicableEnum) {five};
10
11typedef unsigned long mytd;
12
13#define MY_ENUM(name, type, ...) typedef enum : type { __VA_ARGS__ } name##_t
14MY_ENUM(MyEnum, unsigned int, One);
15