[SYCL] Fix test to conform to SYCL2020
authorElizabeth Andrews <elizabeth.andrews@intel.com>
Thu, 26 Jan 2023 21:51:56 +0000 (13:51 -0800)
committerElizabeth Andrews <elizabeth.andrews@intel.com>
Thu, 26 Jan 2023 21:52:48 +0000 (13:52 -0800)
clang/test/SemaSYCL/bf16.cpp

index 06ae263..d1b4776 100644 (file)
@@ -1,7 +1,7 @@
 // RUN: %clang_cc1 -triple spir64 -aux-triple x86_64-unknown-linux-gnu -fsycl-is-device -verify -fsyntax-only %s
 
 template <typename Name, typename Func>
-__attribute__((sycl_kernel)) void kernel(Func kernelFunc) {
+__attribute__((sycl_kernel)) void kernel(const Func &kernelFunc) {
   kernelFunc(); // expected-note {{called by 'kernel}}
 }