summaryrefslogtreecommitdiff
path: root/test/SemaObjCXX/parameterized_classes.mm
blob: 48542634bdd9d48733645897166fd47e74bc5455 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// 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;