]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ARCMT/objcmt-deprecated-category.m
Vendor import of clang release_34 branch r197841 (effectively, 3.4 RC3):
[FreeBSD/FreeBSD.git] / test / ARCMT / objcmt-deprecated-category.m
1 // RUN: rm -rf %t
2 // RUN: %clang_cc1 -objcmt-migrate-annotation -mt-migrate-directory %t %s -x objective-c -triple x86_64-apple-darwin11
3 // RUN: c-arcmt-test -mt-migrate-directory %t | arcmt-test -verify-transformed-files %s.result
4 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -x objective-c %s.result
5 // rdar://15337661
6
7 #define DEPRECATED  __attribute__((deprecated)) 
8
9 @interface NSArray
10 - (int)one;
11 @end
12
13 @interface NSArray (NSDraggingSourceDeprecated)
14
15 /* This method is unsafe because it could potentially cause buffer overruns. You should use -getObjects:range: instead.
16 */
17 - (void)getObjects:(id __unsafe_unretained [])objects;
18 - (void)dep_getObjects:(id __unsafe_unretained [])dep_objects DEPRECATED;
19
20 @end
21
22 @interface NSArray (NSDeprecated)
23
24 /* This method is unsafe because it could potentially cause buffer overruns. You should use -getObjects:range: instead.
25 */
26 - (void)dep_getObjects:(id __unsafe_unretained [])dep_objects DEPRECATED;
27 - (void)getObjects:(id __unsafe_unretained [])objects;
28 @property int P1;
29 @property int P2 DEPRECATED;
30 @end
31
32 @interface NSArray (DraggingSourceDeprecated)
33
34 /* This method is unsafe because it could potentially cause buffer overruns. You should use -getObjects:range: instead.
35 */
36 - (void)getObjects:(id __unsafe_unretained [])objects;
37 - (void)dep_getObjects:(id __unsafe_unretained [])dep_objects DEPRECATED;
38 @property int P1;
39 @property int P2 DEPRECATED;
40
41 @end
42
43 @interface NSArray (Deprecated)
44 - (void)getObjects:(id __unsafe_unretained [])objects;
45 - (void)dep_getObjects:(id __unsafe_unretained [])dep_objects DEPRECATED;
46 @property int P1;
47 @property int P2 DEPRECATED;
48 @end