[PATCH] D61195: [libcxx] Portability fix: std::regex_constants::error_type values are not requied to be non-zero.

Louis Dionne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 26 09:45:07 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL359320: [libc++] Relax libc++-only test on regex_constants (authored by ldionne, committed by ).
Herald added subscribers: llvm-commits, christof.
Herald added a project: LLVM.

Changed prior to commit:
  https://reviews.llvm.org/D61195?vs=196858&id=196869#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D61195/new/

https://reviews.llvm.org/D61195

Files:
  libcxx/trunk/test/std/re/re.const/re.err/error_type.pass.cpp


Index: libcxx/trunk/test/std/re/re.const/re.err/error_type.pass.cpp
===================================================================
--- libcxx/trunk/test/std/re/re.const/re.err/error_type.pass.cpp
+++ libcxx/trunk/test/std/re/re.const/re.err/error_type.pass.cpp
@@ -37,19 +37,19 @@
 
 int main(int, char**)
 {
-    assert(std::regex_constants::error_collate != 0);
-    assert(std::regex_constants::error_ctype != 0);
-    assert(std::regex_constants::error_escape != 0);
-    assert(std::regex_constants::error_backref != 0);
-    assert(std::regex_constants::error_brack != 0);
-    assert(std::regex_constants::error_paren != 0);
-    assert(std::regex_constants::error_brace != 0);
-    assert(std::regex_constants::error_badbrace != 0);
-    assert(std::regex_constants::error_range != 0);
-    assert(std::regex_constants::error_space != 0);
-    assert(std::regex_constants::error_badrepeat != 0);
-    assert(std::regex_constants::error_complexity != 0);
-    assert(std::regex_constants::error_stack != 0);
+    LIBCPP_ASSERT(std::regex_constants::error_collate != 0);
+    LIBCPP_ASSERT(std::regex_constants::error_ctype != 0);
+    LIBCPP_ASSERT(std::regex_constants::error_escape != 0);
+    LIBCPP_ASSERT(std::regex_constants::error_backref != 0);
+    LIBCPP_ASSERT(std::regex_constants::error_brack != 0);
+    LIBCPP_ASSERT(std::regex_constants::error_paren != 0);
+    LIBCPP_ASSERT(std::regex_constants::error_brace != 0);
+    LIBCPP_ASSERT(std::regex_constants::error_badbrace != 0);
+    LIBCPP_ASSERT(std::regex_constants::error_range != 0);
+    LIBCPP_ASSERT(std::regex_constants::error_space != 0);
+    LIBCPP_ASSERT(std::regex_constants::error_badrepeat != 0);
+    LIBCPP_ASSERT(std::regex_constants::error_complexity != 0);
+    LIBCPP_ASSERT(std::regex_constants::error_stack != 0);
 
     assert(std::regex_constants::error_collate != std::regex_constants::error_ctype);
     assert(std::regex_constants::error_collate != std::regex_constants::error_escape);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61195.196869.patch
Type: text/x-patch
Size: 1994 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190426/13c92da1/attachment.bin>


More information about the llvm-commits mailing list