diff --git a/clang/test/SemaSYCL/attr-syclglobalvar.cpp b/clang/test/SemaSYCL/attr-syclglobalvar.cpp index 7ef52f23115c8..5f54a50367787 100644 --- a/clang/test/SemaSYCL/attr-syclglobalvar.cpp +++ b/clang/test/SemaSYCL/attr-syclglobalvar.cpp @@ -67,7 +67,7 @@ __attribute__((sycl_global_var)) void HppF( (void)HppGlobalWithAttributeArg; // expected-error {{SYCL kernel cannot use a non-const global variable}} (void)HppStructTemplate::StaticMember; // ok (void)HppGlobalWithAttrMacro; // ok - (void)HppGlobalNoAttribute; // expected-error {{SYCL kernel cannot use a non-const global variable}} expected-note@Inputs/sycl.hpp:* {{called by}} + (void)HppGlobalNoAttribute; // expected-error {{SYCL kernel cannot use a non-const global variable}} expected-note@#KernelSingleTaskKernelFuncCall {{called by 'kernel_single_task::StaticMember; // ok (void)CppGlobalTemplateStructWithAttribute.InstanceMember; // expected-error {{SYCL kernel cannot use a non-const global variable}} (void)CppGlobalTemplateStructNoAttribute.InstanceMember; // expected-error {{SYCL kernel cannot use a non-const global variable}} - (void)GlobalNoAttribute; // expected-error {{SYCL kernel cannot use a non-const global variable}} expected-note@Inputs/sycl.hpp:* {{called by}} + (void)GlobalNoAttribute; // expected-error {{SYCL kernel cannot use a non-const global variable}} expected-note@#KernelSingleTaskKernelFuncCall {{called by 'kernel_single_task