cuda-kernel-call.cu 517 B

1234567891011121314151617
  1. // RUN: %clang_cc1 -fsyntax-only -verify %s
  2. template<typename> struct S {};
  3. template<typename> void f();
  4. void foo(void) {
  5. foo<<<1; // expected-error {{expected '>>>'}} expected-note {{to match this '<<<'}}
  6. foo<<<1,1>>>; // expected-error {{expected '('}}
  7. foo<<<>>>(); // expected-error {{expected expression}}
  8. // The following two are parse errors because -std=c++11 is not enabled.
  9. S<S<S<int>>> s; // expected-error 2{{use '> >'}}
  10. (void)(&f<S<S<int>>>==0); // expected-error 2{{use '> >'}}
  11. }