xref: /aosp_15_r20/external/clang/test/Index/comment-objc-parameterized-classes.m (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li// RUN: rm -rf %t
2*67e74705SXin Li// RUN: mkdir %t
3*67e74705SXin Li// RUN: c-index-test -test-load-source all -comments-xml-schema=%S/../../bindings/xml/comment-xml-schema.rng -target x86_64-apple-darwin10 %s > %t/out
4*67e74705SXin Li// RUN: FileCheck %s < %t/out
5*67e74705SXin Li
6*67e74705SXin Li// Ensure that XML we generate is not invalid.
7*67e74705SXin Li// RUN: FileCheck %s -check-prefix=WRONG < %t/out
8*67e74705SXin Li// WRONG-NOT: CommentXMLInvalid
9*67e74705SXin Li
10*67e74705SXin Li@protocol NSObject
11*67e74705SXin Li@end
12*67e74705SXin Li
13*67e74705SXin Li@interface NSObject
14*67e74705SXin Li@end
15*67e74705SXin Li
16*67e74705SXin Li// CHECK: <Declaration>@interface A &lt;__covariant T : id, U : NSObject *&gt; : NSObject
17*67e74705SXin Li/// A
18*67e74705SXin Li@interface A<__covariant T : id, U : NSObject *> : NSObject
19*67e74705SXin Li@end
20*67e74705SXin Li
21*67e74705SXin Li// CHECK: <Declaration>@interface AA : A &lt;id, NSObject *&gt;
22*67e74705SXin Li/// AA
23*67e74705SXin Li@interface AA : A<id, NSObject *>
24*67e74705SXin Li@end
25