diff --git a/clang/test/SemaSYCL/bf16.cpp b/clang/test/SemaSYCL/bf16.cpp index 06ae263fbcfe59..d1b4776f340441 100644 --- a/clang/test/SemaSYCL/bf16.cpp +++ b/clang/test/SemaSYCL/bf16.cpp @@ -1,7 +1,7 @@ // RUN: %clang_cc1 -triple spir64 -aux-triple x86_64-unknown-linux-gnu -fsycl-is-device -verify -fsyntax-only %s template -__attribute__((sycl_kernel)) void kernel(Func kernelFunc) { +__attribute__((sycl_kernel)) void kernel(const Func &kernelFunc) { kernelFunc(); // expected-note {{called by 'kernel}} }