diff --git a/sycl/test-e2e/Basic/vector_byte.cpp b/sycl/test-e2e/Basic/vector_byte.cpp index 79463f05195f3..36b16737140cd 100644 --- a/sycl/test-e2e/Basic/vector_byte.cpp +++ b/sycl/test-e2e/Basic/vector_byte.cpp @@ -12,9 +12,11 @@ // //===----------------------------------------------------------------------===// -#define SYCL_SIMPLE_SWIZZLES #include +#include // std::byte +#include // std::ignore + int main() { std::byte bt{7}; // constructors @@ -30,7 +32,7 @@ int main() { // operator[] assert(vb16[3] == std::byte{2}); // explicit conversion - std::byte(vb1.x()); + std::ignore = std::byte(vb1.x()); std::byte b = vb1; // operator=