diff --git a/sycl/test-e2e/USM/memcpy.cpp b/sycl/test-e2e/USM/memcpy.cpp index 9ecafb6b65ea0..fc1029964103b 100644 --- a/sycl/test-e2e/USM/memcpy.cpp +++ b/sycl/test-e2e/USM/memcpy.cpp @@ -86,7 +86,7 @@ void check_on_device(queue q, int *arr) { [&](handler &cgh) { cgh.memcpy(nullptr, ARR, sizeof(int) * N); }); \ q.wait_and_throw(); \ assert(false && "Expected error from copying to nullptr"); \ - } catch (exception e) { \ + } catch (exception e) { \ } \ /* Copying to nullptr should throw. */ \ q.submit([&](handler &cgh) { cgh.memcpy(nullptr, ARR, 0); }); \