1 // RUN: %clang_cc1 -fsyntax-only -verify %s 2 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s 3 4 template<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 14 vector<id<P>> v; 15 vector<vector<id<P>>> v2; 16