xref: /llvm-project/clang/test/ARCMT/objcmt-undefined-ns-macros.m.result (revision 0f1c1be1968076d6f96f8a7bcc4a15cf195ecd97)
1// 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
5typedef long NSInteger;
6#ifndef NS_ENUM
7@import Foundation;
8#endif
9typedef NS_OPTIONS(NSUInteger, UITableStyle) {
10    UIViewNone         = 0x0,
11    UIViewMargin       = 0x1,
12    UIViewWidth        = 0x2,
13    UIViewRightMargin  = 0x3,
14    UIViewBottomMargin = 0xbadbeef
15};
16
17
18typedef
19  NS_ENUM(unsigned int, NumericEnum2) { two = 1 };
20
21typedef NS_ENUM(unsigned int, NumericEnum3) { three = 1 };
22
23typedef NS_ENUM(unsigned int, NumericEnum4) { four = 1 };
24
25