forked from OSchip/llvm-project
[test/objcmt] Add a follow-up test case for r275600.
llvm-svn: 275609
This commit is contained in:
parent
429ef2af6a
commit
4278047f64
|
@ -4,3 +4,5 @@
|
||||||
-(void)setProp:(int)p;
|
-(void)setProp:(int)p;
|
||||||
+(id)i1;
|
+(id)i1;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
typedef long NSInteger;
|
||||||
|
|
|
@ -3,3 +3,5 @@
|
||||||
@property (nonatomic) int prop;
|
@property (nonatomic) int prop;
|
||||||
+(instancetype)i1;
|
+(instancetype)i1;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
typedef long NSInteger;
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
|
|
||||||
|
#define NS_ENUM(_type, _name) enum _name : _type _name; enum _name : _type
|
||||||
|
typedef enum : NSInteger {five} ApplicableEnum;
|
||||||
|
|
||||||
@interface I2 : NSObject
|
@interface I2 : NSObject
|
||||||
-(int)prop;
|
-(int)prop;
|
||||||
-(void)setProp:(int)p;
|
-(void)setProp:(int)p;
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
|
|
||||||
|
#define NS_ENUM(_type, _name) enum _name : _type _name; enum _name : _type
|
||||||
|
typedef NS_ENUM(NSInteger, ApplicableEnum) {five};
|
||||||
|
|
||||||
@interface I2 : NSObject
|
@interface I2 : NSObject
|
||||||
@property (nonatomic) int prop;
|
@property (nonatomic) int prop;
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// RUN: rm -rf %t
|
// RUN: rm -rf %t
|
||||||
// RUN: %clang_cc1 -objcmt-migrate-readwrite-property -objcmt-migrate-instancetype %s -triple x86_64-apple-darwin11 -migrate -o %t.remap
|
// RUN: %clang_cc1 -objcmt-migrate-readwrite-property -objcmt-migrate-instancetype -objcmt-migrate-ns-macros %s -triple x86_64-apple-darwin11 -migrate -o %t.remap
|
||||||
// RUN: c-arcmt-test %t.remap | arcmt-test -verify-transformed-files %S/header1.h.result %S/header2.h.result
|
// RUN: c-arcmt-test %t.remap | arcmt-test -verify-transformed-files %S/header1.h.result %S/header2.h.result
|
||||||
// RUN: %clang_cc1 -objcmt-migrate-readwrite-property -objcmt-migrate-instancetype -objcmt-white-list-dir-path=%S/Inputs %s -triple x86_64-apple-darwin11 -migrate -o %t.remap
|
// RUN: %clang_cc1 -objcmt-migrate-readwrite-property -objcmt-migrate-instancetype -objcmt-migrate-ns-macros -objcmt-white-list-dir-path=%S/Inputs %s -triple x86_64-apple-darwin11 -migrate -o %t.remap
|
||||||
// RUN: c-arcmt-test %t.remap | arcmt-test -verify-transformed-files %S/header1.h.result
|
// RUN: c-arcmt-test %t.remap | arcmt-test -verify-transformed-files %S/header1.h.result
|
||||||
|
|
||||||
@interface NSObject
|
@interface NSObject
|
||||||
|
|
Loading…
Reference in New Issue