• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: rm -rf %t
2// RUN: mkdir %t
3// 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// RUN: FileCheck %s < %t/out
5
6// Ensure that XML we generate is not invalid.
7// RUN: FileCheck %s -check-prefix=WRONG < %t/out
8// WRONG-NOT: CommentXMLInvalid
9
10@protocol NSObject
11@end
12
13@interface NSObject
14@end
15
16// CHECK: <Declaration>@interface A &lt;__covariant T : id, U : NSObject *&gt; : NSObject
17/// A
18@interface A<__covariant T : id, U : NSObject *> : NSObject
19@end
20
21// CHECK: <Declaration>@interface AA : A &lt;id, NSObject *&gt;
22/// AA
23@interface AA : A<id, NSObject *>
24@end
25