brintos

brintos / llvm-project-archived public Read only

0
0
Text · 422 B · f0ff768 Raw
18 lines · plain
1// RUN: %clang_cc1 -fsyntax-only -verify %s2 3template<typename T=int> struct S {};4template<typename> void f();5 6void 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}}12 13  S<S<S<int>>> s;14  S<S<S<>>> s1;15  (void)(&f<S<S<int>>>==0);16  (void)(&f<S<S<>>>==0);17}18