llvm-project
17 строк · 422.0 Байт
1// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3template<typename T=int> struct S {};
4template<typename> void f();
5
6void foo(void) {
7foo<<<1; // expected-error {{expected '>>>'}} expected-note {{to match this '<<<'}}
8
9foo<<<1,1>>>; // expected-error {{expected '('}}
10
11foo<<<>>>(); // expected-error {{expected expression}}
12
13S<S<S<int>>> s;
14S<S<S<>>> s1;
15(void)(&f<S<S<int>>>==0);
16(void)(&f<S<S<>>>==0);
17}
18