From 5b5a9b5c0c5c2bbc57ea8222283a72a1cabcd381 Mon Sep 17 00:00:00 2001 From: Soumi Manna Date: Wed, 13 Dec 2023 08:40:53 -0800 Subject: [PATCH] [NFC][Sema] Update test This patch updates LIT test by using the sycl.hpp header that uses "#" syntax instead of @Inputs/sycl.hpp@LINE Fixes https://github.com/intel/llvm/issues/3415 Signed-off-by: Soumi Manna --- clang/test/SemaSYCL/attr-syclglobalvar.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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