diff --git a/libcxx/test/std/language.support/support.types/byteops/lshift.assign.pass.cpp b/libcxx/test/std/language.support/support.types/byteops/lshift.assign.pass.cpp index 2c63be98ad86a..8b1569ab3036e 100644 --- a/libcxx/test/std/language.support/support.types/byteops/lshift.assign.pass.cpp +++ b/libcxx/test/std/language.support/support.types/byteops/lshift.assign.pass.cpp @@ -12,6 +12,9 @@ // constexpr byte& operator<<=(byte& b, IntType shift) noexcept; // Constraints: is_integral_v is true. +// MSVC warning C4804: '<<': unsafe use of type 'bool' in operation +// ADDITIONAL_COMPILE_FLAGS(cl-style-warnings): /wd4804 + #include #include #include diff --git a/libcxx/test/std/language.support/support.types/byteops/lshift.pass.cpp b/libcxx/test/std/language.support/support.types/byteops/lshift.pass.cpp index 86041def46095..2585162880066 100644 --- a/libcxx/test/std/language.support/support.types/byteops/lshift.pass.cpp +++ b/libcxx/test/std/language.support/support.types/byteops/lshift.pass.cpp @@ -12,6 +12,9 @@ // constexpr byte operator<<(byte b, IntType shift) noexcept; // Constraints: is_integral_v is true. +// MSVC warning C4804: '<<': unsafe use of type 'bool' in operation +// ADDITIONAL_COMPILE_FLAGS(cl-style-warnings): /wd4804 + #include #include #include diff --git a/libcxx/test/std/language.support/support.types/byteops/rshift.assign.pass.cpp b/libcxx/test/std/language.support/support.types/byteops/rshift.assign.pass.cpp index 2fd558c1bf544..bbac97bfc1d46 100644 --- a/libcxx/test/std/language.support/support.types/byteops/rshift.assign.pass.cpp +++ b/libcxx/test/std/language.support/support.types/byteops/rshift.assign.pass.cpp @@ -12,6 +12,9 @@ // constexpr byte& operator>>=(byte& b, IntType shift) noexcept; // Constraints: is_integral_v is true. +// MSVC warning C4804: '>>': unsafe use of type 'bool' in operation +// ADDITIONAL_COMPILE_FLAGS(cl-style-warnings): /wd4804 + #include #include #include diff --git a/libcxx/test/std/language.support/support.types/byteops/rshift.pass.cpp b/libcxx/test/std/language.support/support.types/byteops/rshift.pass.cpp index ded075febfc55..b1b91b4e0fe6d 100644 --- a/libcxx/test/std/language.support/support.types/byteops/rshift.pass.cpp +++ b/libcxx/test/std/language.support/support.types/byteops/rshift.pass.cpp @@ -12,6 +12,9 @@ // constexpr byte operator>>(byte b, IntType shift) noexcept; // Constraints: is_integral_v is true. +// MSVC warning C4804: '>>': unsafe use of type 'bool' in operation +// ADDITIONAL_COMPILE_FLAGS(cl-style-warnings): /wd4804 + #include #include #include