| 1 |
// RUN: %clang_cc1 -std=c++11 %s -verify |
| 2 |
|
| 3 |
// expected-no-diagnostics |
| 4 |
@protocol NSObject |
| 5 |
@end |
| 6 |
|
| 7 |
@protocol NSCopying |
| 8 |
@end |
| 9 |
|
| 10 |
__attribute__((objc_root_class)) |
| 11 |
@interface NSObject <NSObject> |
| 12 |
@end |
| 13 |
|
| 14 |
@interface NSString : NSObject |
| 15 |
@end |
| 16 |
|
| 17 |
// -------------------------------------------------------------------------- |
| 18 |
// Parsing parameterized classes. |
| 19 |
// -------------------------------------------------------------------------- |
| 20 |
@interface PC1<T, U, V> : NSObject |
| 21 |
@end |
| 22 |
|
| 23 |
// -------------------------------------------------------------------------- |
| 24 |
// Parsing type arguments. |
| 25 |
// -------------------------------------------------------------------------- |
| 26 |
typedef PC1<::NSString *, NSString *, id<NSCopying>> typeArgs1; |