1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
---|---|
2 | // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s |
3 | |
4 | template<class T> class vector {}; |
5 | @protocol P @end |
6 | |
7 | // expected-no-diagnostics |
8 | |
9 | vector<id<P>> v; |
10 | vector<vector<id<P>>> v2; |
11 | |
12 | @protocol PA; |
13 | @protocol PB; |
14 | |
15 | @class NSArray<ObjectType>; |
16 | typedef int some_t; |
17 | |
18 | id<PA> FA(NSArray<id<PB>> *h, some_t group); |
19 |