xref: /minix3/external/bsd/llvm/dist/clang/test/Parser/objcxx11-protocol-in-template.mm (revision 0b98e8aad89f2bd4ba80b523d73cf29e9dd82ce1)
1// 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
7#if __cplusplus >= 201103L
8  // expected-no-diagnostics
9#else
10  // expected-error@14{{a space is required between consecutive right angle brackets}}
11  // expected-error@15{{a space is required between consecutive right angle brackets}}
12#endif
13
14vector<id<P>> v;
15vector<vector<id<P>>> v2;
16