[libc++] Relax libc++-only test on regex_constants
authorLouis Dionne <ldionne@apple.com>
Fri, 26 Apr 2019 16:46:37 +0000 (16:46 +0000)
committerLouis Dionne <ldionne@apple.com>
Fri, 26 Apr 2019 16:46:37 +0000 (16:46 +0000)
commitf30f261dc531b289bc74c157178e5bbc4a6ff7c9
treefdceaf33390958901a7ba71c4fe6e1a59dc7d9b8
parentedebf12acfe2f83822510a780377f3b36177d478
[libc++] Relax libc++-only test on regex_constants

The standard requires the following for the std::regex_constants::error_type
values: "The type error_type is an implementation-defined enumerated type."

The values of this enumerated type are not required to be non-zero.
This patch makes such checks in tests libc++-specific to let the tests
pass for other conforming implementations.

Thanks to Andrey Maksimov for the patch.
Differential Revision: https://reviews.llvm.org/D61195

llvm-svn: 359320
libcxx/test/std/re/re.const/re.err/error_type.pass.cpp