llvm-for-llvmta/tools/clang/test/Parser/objcxx11-protocol-in-templa...

19 lines
348 B
Plaintext
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// 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);