[llvm] [ADT] Implement ArrayRef::operator< and other comparisons (PR #147277)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 7 06:38:06 PDT 2025


================
@@ -231,6 +231,27 @@ TEST(ArrayRefTest, EmptyEquals) {
   EXPECT_TRUE(ArrayRef<unsigned>() == ArrayRef<unsigned>());
 }
 
+TEST(ArrayRefTest, Compare) {
+  ArrayRef<char> Ban("Ban");
----------------
jayfoad wrote:

I guess, but it seems to me it would just make the test a bit less readable.

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


More information about the llvm-commits mailing list