diff options
Diffstat (limited to 'test/Index/comment-objc-parameterized-classes.m')
-rw-r--r-- | test/Index/comment-objc-parameterized-classes.m | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/Index/comment-objc-parameterized-classes.m b/test/Index/comment-objc-parameterized-classes.m new file mode 100644 index 000000000000..5a928509dfe6 --- /dev/null +++ b/test/Index/comment-objc-parameterized-classes.m @@ -0,0 +1,19 @@ +// RUN: rm -rf %t +// RUN: mkdir %t +// 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 +// RUN: FileCheck %s < %t/out + +// Ensure that XML we generate is not invalid. +// RUN: FileCheck %s -check-prefix=WRONG < %t/out +// WRONG-NOT: CommentXMLInvalid + +@protocol NSObject +@end + +@interface NSObject +@end + +// CHECK: <Declaration>@interface A <__covariant T : id, U : NSObject *> : NSObject +/// A +@interface A<__covariant T : id, U : NSObject *> : NSObject +@end |