blob: 92e46e3acaf53cf1adf6ad0634f98ed86eeab18a [file] [log] [blame]
Peter Collingbournebf36e252011-02-09 21:12:02 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
2
Richard Smith19a27022012-06-18 06:11:04 +00003template<typename> struct S {};
4template<typename> void f();
5
Peter Collingbournebf36e252011-02-09 21:12:02 +00006void foo(void) {
7 foo<<<1; // expected-error {{expected '>>>'}} expected-note {{to match this '<<<'}}
8
9 foo<<<1,1>>>; // expected-error {{expected '('}}
10
11 foo<<<>>>(); // expected-error {{expected expression}}
Richard Smith19a27022012-06-18 06:11:04 +000012
13 S<S<S<int>>> s; // expected-error 2{{use '> >'}}
14
15 (void)(&f<S<S<int>>>==0); // expected-error 2{{use '> >'}}
Peter Collingbournebf36e252011-02-09 21:12:02 +000016}