[libcxx-commits] [libcxx] [libc++][test] Rewrite tests for `std::byte` (PR #204116)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jun 18 08:54:45 PDT 2026


================
@@ -6,35 +6,42 @@
 //
 //===----------------------------------------------------------------------===//
 
+#include <cassert>
 #include <cstddef>
-#include <test_macros.h>
+#include <type_traits>
 
-// UNSUPPORTED: c++03, c++11, c++14
+// REQUIRES: std-at-least-c++17
 
-// constexpr byte& operator &=(byte l, byte r) noexcept;
+// constexpr byte& operator&=(byte& l, byte r) noexcept;
----------------
ldionne wrote:

The `REQUIRES` and synopsis normally go above includes, let's make these test files consistent with the rest of the test suite.

https://github.com/llvm/llvm-project/pull/204116


More information about the libcxx-commits mailing list