mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-08 14:49:38 +00:00
80ebf8da7e
use NS_ENUM/NS_OPTIONS macros, add an import of Foundation.h (or its module) as necessary. rdar://18498550 llvm-svn: 219225
25 lines
645 B
Objective-C
25 lines
645 B
Objective-C
// RUN: rm -rf %t
|
|
// 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
|
|
// RUN: c-arcmt-test -mt-migrate-directory %t | arcmt-test -verify-transformed-files %s.result
|
|
|
|
// rdar://18498550
|
|
|
|
typedef long NSInteger;
|
|
enum {
|
|
UIViewNone = 0x0,
|
|
UIViewMargin = 0x1,
|
|
UIViewWidth = 0x2,
|
|
UIViewRightMargin = 0x3,
|
|
UIViewBottomMargin = 0xbadbeef
|
|
};
|
|
typedef NSInteger UITableStyle;
|
|
|
|
|
|
typedef
|
|
enum { two = 1 } NumericEnum2;
|
|
|
|
typedef enum { three = 1 } NumericEnum3;
|
|
|
|
typedef enum { four = 1 } NumericEnum4;
|
|
|