Peter Collingbourne | bf36e25 | 2011-02-09 21:12:02 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
| 2 | |
Richard Smith | 19a2702 | 2012-06-18 06:11:04 +0000 | [diff] [blame] | 3 | template<typename> struct S {}; |
| 4 | template<typename> void f(); |
| 5 | |
Peter Collingbourne | bf36e25 | 2011-02-09 21:12:02 +0000 | [diff] [blame] | 6 | void 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 Smith | 19a2702 | 2012-06-18 06:11:04 +0000 | [diff] [blame] | 12 | |
| 13 | S<S<S<int>>> s; // expected-error 2{{use '> >'}} |
| 14 | |
| 15 | (void)(&f<S<S<int>>>==0); // expected-error 2{{use '> >'}} |
Peter Collingbourne | bf36e25 | 2011-02-09 21:12:02 +0000 | [diff] [blame] | 16 | } |