Fix diagnostic regex in variant tests to tolerate older clang versions
authorEric Fiselier <eric@efcs.ca>
Thu, 20 Sep 2018 01:15:17 +0000 (01:15 +0000)
committerEric Fiselier <eric@efcs.ca>
Thu, 20 Sep 2018 01:15:17 +0000 (01:15 +0000)
llvm-svn: 342609

libcxx/test/std/utilities/variant/variant.relops/relops_bool_conv.fail.cpp

index c0c296c..ab68bc4 100644 (file)
@@ -77,7 +77,7 @@ int main() {
   using V = std::variant<int, ComparesToMyBoolExplicit>;
   V v1(42);
   V v2(101);
-  // expected-error-re@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@variant:* 6 {{static_assert failed {{.*}}"the relational operator does not return a type which is implicitly convertible to bool"}}
   // expected-error@variant:* 6 {{no viable conversion}}
   (void)(v1 == v2); // expected-note {{here}}
   (void)(v1 != v2); // expected-note {{here}}