blob: 5c80ae975979119ba873a67eb0581b87b439ffc7 [file] [log] [blame]
Nico Weber7aa4a882012-12-14 18:22:38 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
2// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
3
4template<class T> class vector {};
5@protocol P @end
6
Douglas Gregore9d95f12015-07-07 03:57:35 +00007// expected-no-diagnostics
Nico Weber7aa4a882012-12-14 18:22:38 +00008
9vector<id<P>> v;
10vector<vector<id<P>>> v2;
Bruno Cardoso Lopes428a5aa2016-01-31 00:47:51 +000011
12@protocol PA;
13@protocol PB;
14
15@class NSArray<ObjectType>;
16typedef int some_t;
17
18id<PA> FA(NSArray<id<PB>> *h, some_t group);