llvm-project/clang/test/Parser/objcxx11-protocol-in-templa...

19 lines
348 B
Plaintext

// RUN: %clang_cc1 -fsyntax-only -verify %s
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
template<class T> class vector {};
@protocol P @end
// expected-no-diagnostics
vector<id<P>> v;
vector<vector<id<P>>> v2;
@protocol PA;
@protocol PB;
@class NSArray<ObjectType>;
typedef int some_t;
id<PA> FA(NSArray<id<PB>> *h, some_t group);