185f3f951SDouglas Gregor// RUN: rm -rf %t 285f3f951SDouglas Gregor// RUN: mkdir %t 385f3f951SDouglas Gregor// 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 485f3f951SDouglas Gregor// RUN: FileCheck %s < %t/out 585f3f951SDouglas Gregor 685f3f951SDouglas Gregor// Ensure that XML we generate is not invalid. 785f3f951SDouglas Gregor// RUN: FileCheck %s -check-prefix=WRONG < %t/out 885f3f951SDouglas Gregor// WRONG-NOT: CommentXMLInvalid 985f3f951SDouglas Gregor 1085f3f951SDouglas Gregor@protocol NSObject 1185f3f951SDouglas Gregor@end 1285f3f951SDouglas Gregor 1385f3f951SDouglas Gregor@interface NSObject 1485f3f951SDouglas Gregor@end 1585f3f951SDouglas Gregor 161ac1b63cSDouglas Gregor// CHECK: <Declaration>@interface A<__covariant T : id, U : NSObject *> : NSObject 1785f3f951SDouglas Gregor/// A 181ac1b63cSDouglas Gregor@interface A<__covariant T : id, U : NSObject *> : NSObject 1985f3f951SDouglas Gregor@end 20*1f24ea15SBob Wilson 21*1f24ea15SBob Wilson// CHECK: <Declaration>@interface AA : A <id, NSObject *> 22*1f24ea15SBob Wilson/// AA 23*1f24ea15SBob Wilson@interface AA : A<id, NSObject *> 24*1f24ea15SBob Wilson@end 25