hanchenye-llvm-project/clang/test/Parser/cuda-kernel-call.cu

10 lines
266 B
Plaintext

// 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}}
}