Skip to content

Commit 48afb28

Browse files
committed
fix
1 parent 3f8c787 commit 48afb28

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sycl/test-e2e/Basic/info.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -335,13 +335,13 @@ int main() {
335335
try {
336336
print_info<info::device::preferred_interop_user_sync, bool>(
337337
dev, "Preferred interop user sync");
338-
} catch (sycl::exception &e) {
338+
} catch (const sycl::exception &e) {
339339
std::cout << "Expected exception has been caught: " << e.what()
340340
<< std::endl;
341341
}
342342
try {
343343
print_info<info::device::parent_device, device>(dev, "Parent device");
344-
} catch (sycl::exception &e) {
344+
} catch (const sycl::exception &e) {
345345
std::cout << "Expected exception has been caught: " << e.what()
346346
<< std::endl;
347347
}
@@ -366,7 +366,7 @@ int main() {
366366
platform plt(dev.get_platform());
367367
try {
368368
print_info<info::platform::profile, std::string>(plt, "Profile");
369-
} catch (sycl::exception &e) {
369+
} catch (const sycl::exception &e) {
370370
std::cout << "Expected exception has been caught: " << e.what()
371371
<< std::endl;
372372
}

0 commit comments

Comments
 (0)