Nico Weber | 7aa4a88 | 2012-12-14 18:22:38 +0000 | [diff] [blame] | 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 | |
Douglas Gregor | e9d95f1 | 2015-07-07 03:57:35 +0000 | [diff] [blame] | 7 | // expected-no-diagnostics |
Nico Weber | 7aa4a88 | 2012-12-14 18:22:38 +0000 | [diff] [blame] | 8 | |
| 9 | vector<id<P>> v; |
| 10 | vector<vector<id<P>>> v2; |
Bruno Cardoso Lopes | 428a5aa | 2016-01-31 00:47:51 +0000 | [diff] [blame] | 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); |