2011-02-10 05:12:02 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
|
|
|
2018-09-22 01:46:28 +08:00
|
|
|
template<typename T=int> struct S {};
|
2012-06-18 14:11:04 +08:00
|
|
|
template<typename> void f();
|
|
|
|
|
2011-02-10 05:12:02 +08:00
|
|
|
void foo(void) {
|
|
|
|
foo<<<1; // expected-error {{expected '>>>'}} expected-note {{to match this '<<<'}}
|
|
|
|
|
|
|
|
foo<<<1,1>>>; // expected-error {{expected '('}}
|
|
|
|
|
|
|
|
foo<<<>>>(); // expected-error {{expected expression}}
|
2012-06-18 14:11:04 +08:00
|
|
|
|
2021-05-27 11:11:33 +08:00
|
|
|
S<S<S<int>>> s;
|
|
|
|
S<S<S<>>> s1;
|
|
|
|
(void)(&f<S<S<int>>>==0);
|
|
|
|
(void)(&f<S<S<>>>==0);
|
2011-02-10 05:12:02 +08:00
|
|
|
}
|