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

11 lines
224 B
Plaintext
Raw Normal View History

// 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;