Skip to content

Commit 84c6ab5

Browse files
authored
[NFC][Sema] Update test (#12162)
This patch updates LIT test by using the sycl.hpp header that uses "#" syntax instead of @Inputs/sycl.hpp@LINE Fixes #3415 Signed-off-by: Soumi Manna <soumi.manna@intel.com>
1 parent 5304932 commit 84c6ab5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/test/SemaSYCL/attr-syclglobalvar.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ __attribute__((sycl_global_var)) void HppF(
6767
(void)HppGlobalWithAttributeArg; // expected-error {{SYCL kernel cannot use a non-const global variable}}
6868
(void)HppStructTemplate<int>::StaticMember; // ok
6969
(void)HppGlobalWithAttrMacro; // ok
70-
(void)HppGlobalNoAttribute; // expected-error {{SYCL kernel cannot use a non-const global variable}} expected-note@Inputs/sycl.hpp:* {{called by}}
70+
(void)HppGlobalNoAttribute; // expected-error {{SYCL kernel cannot use a non-const global variable}} expected-note@#KernelSingleTaskKernelFuncCall {{called by 'kernel_single_task<kernel_name, (lambda at}}
7171
});
7272
}
7373

@@ -145,6 +145,6 @@ __attribute__((sycl_global_var)) void F(
145145
(void)HppStructTemplate<int>::StaticMember; // ok
146146
(void)CppGlobalTemplateStructWithAttribute.InstanceMember; // expected-error {{SYCL kernel cannot use a non-const global variable}}
147147
(void)CppGlobalTemplateStructNoAttribute.InstanceMember; // expected-error {{SYCL kernel cannot use a non-const global variable}}
148-
(void)GlobalNoAttribute; // expected-error {{SYCL kernel cannot use a non-const global variable}} expected-note@Inputs/sycl.hpp:* {{called by}}
148+
(void)GlobalNoAttribute; // expected-error {{SYCL kernel cannot use a non-const global variable}} expected-note@#KernelSingleTaskKernelFuncCall {{called by 'kernel_single_task<kernel_name, (lambda at}}
149149
});
150150
}

0 commit comments

Comments
 (0)