xref: /minix3/external/bsd/llvm/dist/clang/test/Index/comment-unqualified-objc-pointer.m (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc// RUN: rm -rf %t
2*f4a2713aSLionel Sambuc// RUN: mkdir %t
3*f4a2713aSLionel Sambuc// RUN: c-index-test -test-load-source all -comments-xml-schema=%S/../../bindings/xml/comment-xml-schema.rng -target x86_64-apple-darwin10 -fobjc-arc %s > %t/out
4*f4a2713aSLionel Sambuc// RUN: FileCheck %s < %t/out
5*f4a2713aSLionel Sambuc// rdar://13757500
6*f4a2713aSLionel Sambuc
7*f4a2713aSLionel Sambuc@class NSString;
8*f4a2713aSLionel Sambuc
9*f4a2713aSLionel Sambuc@interface NSArray @end
10*f4a2713aSLionel Sambuc
11*f4a2713aSLionel Sambuc@interface NSMutableArray : NSArray
12*f4a2713aSLionel Sambuc{
13*f4a2713aSLionel Sambuc//! This is the name.
14*f4a2713aSLionel Sambuc  NSString *Name;
15*f4a2713aSLionel Sambuc}
16*f4a2713aSLionel Sambuc//! This is WithLabel comment.
17*f4a2713aSLionel Sambuc- (NSString *)WithLabel:(NSString * const)label;
18*f4a2713aSLionel Sambuc// CHECK: <Declaration>- (NSString *)WithLabel:(NSString *const)label;</Declaration>
19*f4a2713aSLionel Sambuc
20*f4a2713aSLionel Sambuc//! This is a property to get the Name.
21*f4a2713aSLionel Sambuc@property (copy) NSString *Name;
22*f4a2713aSLionel Sambuc// CHECK: <Declaration>@property(readwrite, copy, atomic) NSString *Name;</Declaration>
23*f4a2713aSLionel Sambuc@end
24*f4a2713aSLionel Sambuc
25*f4a2713aSLionel Sambuc@implementation NSMutableArray
26*f4a2713aSLionel Sambuc{
27*f4a2713aSLionel Sambuc//! This is private ivar
28*f4a2713aSLionel Sambuc  NSString *NickName;
29*f4a2713aSLionel Sambuc// CHECK: <Declaration>NSString *NickName</Declaration>
30*f4a2713aSLionel Sambuc}
31*f4a2713aSLionel Sambuc
32*f4a2713aSLionel Sambuc- (NSString *)WithLabel:(NSString * const)label {
33*f4a2713aSLionel Sambuc    return 0;
34*f4a2713aSLionel Sambuc}
35*f4a2713aSLionel Sambuc@synthesize Name = Name;
36*f4a2713aSLionel Sambuc@end
37