[libcxx] r342609 - Fix diagnostic regex in variant tests to tolerate older clang versions
Eric Fiselier
eric at efcs.ca
Wed Sep 19 18:15:17 PDT 2018
Author: ericwf
Date: Wed Sep 19 18:15:17 2018
New Revision: 342609
URL: http://llvm.org/viewvc/llvm-project?rev=342609&view=rev
Log:
Fix diagnostic regex in variant tests to tolerate older clang versions
Modified:
libcxx/trunk/test/std/utilities/variant/variant.relops/relops_bool_conv.fail.cpp
Modified: libcxx/trunk/test/std/utilities/variant/variant.relops/relops_bool_conv.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/variant/variant.relops/relops_bool_conv.fail.cpp?rev=342609&r1=342608&r2=342609&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/variant/variant.relops/relops_bool_conv.fail.cpp (original)
+++ libcxx/trunk/test/std/utilities/variant/variant.relops/relops_bool_conv.fail.cpp Wed Sep 19 18:15:17 2018
@@ -77,7 +77,7 @@ int main() {
using V = std::variant<int, ComparesToMyBoolExplicit>;
V v1(42);
V v2(101);
- // expected-error-re at variant:* 6 {{static_assert failed due to requirement 'std::is_convertible{{[^']+}}' "the relational operator does not return a type which is implicitly convertible to bool"}}
+ // expected-error-re at variant:* 6 {{static_assert failed {{.*}}"the relational operator does not return a type which is implicitly convertible to bool"}}
// expected-error at variant:* 6 {{no viable conversion}}
(void)(v1 == v2); // expected-note {{here}}
(void)(v1 != v2); // expected-note {{here}}
More information about the libcxx-commits
mailing list