diff --git a/tests/accessor/generic_accessor_api_common.h b/tests/accessor/generic_accessor_api_common.h index 6b065f6d6..a8163d737 100644 --- a/tests/accessor/generic_accessor_api_common.h +++ b/tests/accessor/generic_accessor_api_common.h @@ -240,8 +240,8 @@ class run_api_tests { sycl::accessor res_acc(res_buf, cgh); cgh.single_task([acc, res_acc]() { test_accessor_ptr_device(acc, expected_val, res_acc); - res_acc[0] &= test_begin_end_device(acc, expected_val, - expected_val, true); + res_acc[0] = test_begin_end_device(acc, expected_val, + expected_val, true); if constexpr (0 < dims) { auto &acc_ref1 = acc[sycl::id()]; auto &acc_ref2 = @@ -352,7 +352,7 @@ class run_api_tests { sycl::accessor res_acc(res_buf, cgh); cgh.single_task([=]() { test_accessor_ptr_device(acc, T(), res_acc); - res_acc[0] &= test_begin_end_device( + res_acc[0] = test_begin_end_device( acc, value_operations::init(first_elem), value_operations::init(last_elem), true); auto &acc_ref1 =