Skip to content

Commit b3e7606

Browse files
authored
[DeviceSanitizer][test] Update test to satisfy both libstdc++ and libc++ (#14470)
The implementation of kernel name detangling is standard lib dependent, and both libstdc++ and libc++ are likely to be used, so we should make the test pass both with libstdc++ and libc++.
1 parent 902b5ac commit b3e7606

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/test-e2e/AddressSanitizer/common/demangle-kernel-name.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ int main() {
1616
[=](sycl::nd_item<1> item) { ++array[item.get_global_id(0)]; });
1717
});
1818
Q.wait();
19-
// CHECK: kernel <typeinfo name for main::{lambda(sycl::_V1::handler&)#1}::operator()(sycl::_V1::handler&) const::MyKernel>
19+
// CHECK: kernel <typeinfo name for main::{{.*\(sycl::_V1::handler&\).*}}::operator()(sycl::_V1::handler&) const::MyKernel>
2020

2121
sycl::free(array, Q);
2222
return 0;

0 commit comments

Comments
 (0)