llvm-for-llvmta/tools/clang/test/SemaObjCXX/parameterized_classes.mm

27 lines
705 B
Plaintext
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -std=c++11 %s -verify
// expected-no-diagnostics
@protocol NSObject
@end
@protocol NSCopying
@end
__attribute__((objc_root_class))
@interface NSObject <NSObject>
@end
@interface NSString : NSObject
@end
// --------------------------------------------------------------------------
// Parsing parameterized classes.
// --------------------------------------------------------------------------
@interface PC1<T, U, V> : NSObject
@end
// --------------------------------------------------------------------------
// Parsing type arguments.
// --------------------------------------------------------------------------
typedef PC1<::NSString *, NSString *, id<NSCopying>> typeArgs1;