mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-29 01:46:05 +00:00

I broke this test in D45498 when I changed the formatter to remove spaces before Objective-C lightweight generics. This fixes the test. Test Plan: % make -j16 check-llvm-tools-llvm-lit && ./bin/llvm-lit -sv ../llvm/tools/clang/test/Index/comment-objc-parameterized-classes.m llvm-svn: 329921
25 lines
669 B
Objective-C
25 lines
669 B
Objective-C
// 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
|
|
|
|
// CHECK: <Declaration>@interface AA : A <id, NSObject *>
|
|
/// AA
|
|
@interface AA : A<id, NSObject *>
|
|
@end
|