xref: /llvm-project/clang/test/ARCMT/objcmt-undefined-ns-macros.m (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;
6enum {
7    UIViewNone         = 0x0,
8    UIViewMargin       = 0x1,
9    UIViewWidth        = 0x2,
10    UIViewRightMargin  = 0x3,
11    UIViewBottomMargin = 0xbadbeef
12};
13typedef NSInteger UITableStyle;
14
15
16typedef
17  enum { two = 1 } NumericEnum2;
18
19typedef enum { three = 1 } NumericEnum3;
20
21typedef enum { four = 1 } NumericEnum4;
22
23