xref: /llvm-project/clang/test/Parser/cuda-kernel-call.cu (revision 61c65d8e4a29610bd1ab498eba8f892ffc0af023)
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 
3 template<typename T=int> struct S {};
4 template<typename> void f();
5 
foo(void)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}}
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