Author: ericwf Date: Wed Feb 7 13:25:25 2018 New Revision: 324529 URL: http://llvm.org/viewvc/llvm-project?rev=324529&view=rev Log: Fix -verify static assert messages for older Clang versions
Modified: libcxx/trunk/test/std/containers/sequences/array/array.fill/fill.fail.cpp libcxx/trunk/test/std/containers/sequences/array/array.swap/swap.fail.cpp Modified: libcxx/trunk/test/std/containers/sequences/array/array.fill/fill.fail.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/sequences/array/array.fill/fill.fail.cpp?rev=324529&r1=324528&r2=324529&view=diff ============================================================================== --- libcxx/trunk/test/std/containers/sequences/array/array.fill/fill.fail.cpp (original) +++ libcxx/trunk/test/std/containers/sequences/array/array.fill/fill.fail.cpp Wed Feb 7 13:25:25 2018 @@ -23,7 +23,7 @@ int main() { typedef double T; typedef std::array<const T, 0> C; C c = {}; - // expected-error-re@array:* {{static_assert failed {{.*}} "cannot fill zero-sized array of type 'const T'"}} + // expected-error-re@array:* {{static_assert failed {{.*}}"cannot fill zero-sized array of type 'const T'"}} c.fill(5.5); // expected-note {{requested here}} } } Modified: libcxx/trunk/test/std/containers/sequences/array/array.swap/swap.fail.cpp URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/sequences/array/array.swap/swap.fail.cpp?rev=324529&r1=324528&r2=324529&view=diff ============================================================================== --- libcxx/trunk/test/std/containers/sequences/array/array.swap/swap.fail.cpp (original) +++ libcxx/trunk/test/std/containers/sequences/array/array.swap/swap.fail.cpp Wed Feb 7 13:25:25 2018 @@ -24,7 +24,7 @@ int main() { typedef std::array<const T, 0> C; C c = {}; C c2 = {}; - // expected-error-re@array:* {{static_assert failed {{.*}} "cannot swap zero-sized array of type 'const T'"}} + // expected-error-re@array:* {{static_assert failed {{.*}}"cannot swap zero-sized array of type 'const T'"}} c.swap(c2); // expected-note {{requested here}} } } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits