1 // RUN: %clang_cc1 -triple spir64 -aux-triple x86_64-unknown-linux-gnu -fsycl-is-device -verify -fsyntax-only %s
3 template <typename Name
, typename Func
>
4 __attribute__((sycl_kernel
)) void kernel(const Func
&kernelFunc
) {
5 kernelFunc(); // expected-note {{called by 'kernel}}
14 __bf16 var
; // expected-note {{'var' defined here}}
15 kernel
<class variables
>([=]() {
16 (void)var
; // expected-error {{'var' requires 16 bit size '__bf16' type support, but target 'spir64' does not support it}}
17 int B
= sizeof(__bf16
);