aboutsummaryrefslogtreecommitdiff
path: root/test/ARCMT/objcmt-deprecated-category.m.result
blob: 3cb100044e4694cc5554404691cb2489f08ea12c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// RUN: rm -rf %t
// RUN: %clang_cc1 -objcmt-migrate-annotation -mt-migrate-directory %t %s -x objective-c -triple x86_64-apple-darwin11
// RUN: c-arcmt-test -mt-migrate-directory %t | arcmt-test -verify-transformed-files %s.result
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -x objective-c %s.result
// rdar://15337661

#define DEPRECATED  __attribute__((deprecated)) 

@interface NSArray
- (int)one;
@end

@interface NSArray (NSDraggingSourceDeprecated)

/* This method is unsafe because it could potentially cause buffer overruns. You should use -getObjects:range: instead.
*/
- (void)getObjects:(id __unsafe_unretained [])objects DEPRECATED;
- (void)dep_getObjects:(id __unsafe_unretained [])dep_objects DEPRECATED;

@end

@interface NSArray (NSDeprecated)

/* This method is unsafe because it could potentially cause buffer overruns. You should use -getObjects:range: instead.
*/
- (void)dep_getObjects:(id __unsafe_unretained [])dep_objects DEPRECATED;
- (void)getObjects:(id __unsafe_unretained [])objects DEPRECATED;
@property int P1 DEPRECATED;
@property int P2 DEPRECATED;
@end

@interface NSArray (DraggingSourceDeprecated)

/* This method is unsafe because it could potentially cause buffer overruns. You should use -getObjects:range: instead.
*/
- (void)getObjects:(id __unsafe_unretained [])objects DEPRECATED;
- (void)dep_getObjects:(id __unsafe_unretained [])dep_objects DEPRECATED;
@property int P1 DEPRECATED;
@property int P2 DEPRECATED;

@end

@interface NSArray (Deprecated)
- (void)getObjects:(id __unsafe_unretained [])objects DEPRECATED;
- (void)dep_getObjects:(id __unsafe_unretained [])dep_objects DEPRECATED;
@property int P1 DEPRECATED;
@property int P2 DEPRECATED;
@end