summaryrefslogtreecommitdiff
path: root/clang/test/Parser/cuda-kernel-call.cu
blob: f95ae9e6195f764b3a2d8bacac15945402de86c3 (about) (plain)
1
2
3
4
5
6
7
8
9
// RUN: %clang_cc1 -fsyntax-only -verify %s

void foo(void) {
  foo<<<1;      // expected-error {{expected '>>>'}} expected-note {{to match this '<<<'}}

  foo<<<1,1>>>; // expected-error {{expected '('}}

  foo<<<>>>();  // expected-error {{expected expression}}
}