[libcxx] r302871 - Fix C++03 test failures caused by static_assert emulation
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Thu May 11 20:53:57 PDT 2017
Author: ericwf
Date: Thu May 11 22:53:56 2017
New Revision: 302871
URL: http://llvm.org/viewvc/llvm-project?rev=302871&view=rev
Log:
Fix C++03 test failures caused by static_assert emulation
Modified:
libcxx/trunk/test/std/localization/locales/locale.convenience/conversions/conversions.string/converted.pass.cpp
libcxx/trunk/test/std/localization/locales/locale.convenience/conversions/conversions.string/from_bytes.pass.cpp
libcxx/trunk/test/std/localization/locales/locale.convenience/conversions/conversions.string/to_bytes.pass.cpp
Modified: libcxx/trunk/test/std/localization/locales/locale.convenience/conversions/conversions.string/converted.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/localization/locales/locale.convenience/conversions/conversions.string/converted.pass.cpp?rev=302871&r1=302870&r2=302871&view=diff
==============================================================================
--- libcxx/trunk/test/std/localization/locales/locale.convenience/conversions/conversions.string/converted.pass.cpp (original)
+++ libcxx/trunk/test/std/localization/locales/locale.convenience/conversions/conversions.string/converted.pass.cpp Thu May 11 22:53:56 2017
@@ -30,7 +30,7 @@ struct TestHelper<CharT, 4> {
template <class CharT>
void TestHelper<CharT, 2>::test() {
- static_assert(std::is_same<CharT, wchar_t>::value, "");
+ static_assert((std::is_same<CharT, wchar_t>::value), "");
{
typedef std::codecvt_utf8<CharT> Codecvt;
typedef std::wstring_convert<Codecvt> Myconv;
@@ -47,7 +47,7 @@ void TestHelper<CharT, 2>::test() {
template <class CharT>
void TestHelper<CharT, 4>::test() {
- static_assert(std::is_same<CharT, wchar_t>::value, "");
+ static_assert((std::is_same<CharT, wchar_t>::value), "");
{
typedef std::codecvt_utf8<CharT> Codecvt;
typedef std::wstring_convert<Codecvt> Myconv;
Modified: libcxx/trunk/test/std/localization/locales/locale.convenience/conversions/conversions.string/from_bytes.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/localization/locales/locale.convenience/conversions/conversions.string/from_bytes.pass.cpp?rev=302871&r1=302870&r2=302871&view=diff
==============================================================================
--- libcxx/trunk/test/std/localization/locales/locale.convenience/conversions/conversions.string/from_bytes.pass.cpp (original)
+++ libcxx/trunk/test/std/localization/locales/locale.convenience/conversions/conversions.string/from_bytes.pass.cpp Thu May 11 22:53:56 2017
@@ -33,7 +33,7 @@ struct TestHelper<CharT, 4> {
template <class CharT>
void TestHelper<CharT, 2>::test() {
- static_assert(std::is_same<CharT, wchar_t>::value, "");
+ static_assert((std::is_same<CharT, wchar_t>::value), "");
{
std::wstring_convert<std::codecvt_utf8<CharT> > myconv;
std::string bs("\xE1\x80\x85\x00");
@@ -52,7 +52,7 @@ void TestHelper<CharT, 2>::test() {
template <class CharT>
void TestHelper<CharT, 4>::test() {
- static_assert(std::is_same<CharT, wchar_t>::value, "");
+ static_assert((std::is_same<CharT, wchar_t>::value), "");
{
std::wstring_convert<std::codecvt_utf8<CharT> > myconv;
std::string bs("\xF1\x80\x80\x83");
Modified: libcxx/trunk/test/std/localization/locales/locale.convenience/conversions/conversions.string/to_bytes.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/localization/locales/locale.convenience/conversions/conversions.string/to_bytes.pass.cpp?rev=302871&r1=302870&r2=302871&view=diff
==============================================================================
--- libcxx/trunk/test/std/localization/locales/locale.convenience/conversions/conversions.string/to_bytes.pass.cpp (original)
+++ libcxx/trunk/test/std/localization/locales/locale.convenience/conversions/conversions.string/to_bytes.pass.cpp Thu May 11 22:53:56 2017
@@ -33,7 +33,7 @@ struct TestHelper<CharT, 4> {
template <class CharT>
void TestHelper<CharT, 2>::test() {
- static_assert(std::is_same<CharT, wchar_t>::value, "");
+ static_assert((std::is_same<CharT, wchar_t>::value), "");
{
std::wstring_convert<std::codecvt_utf8<CharT> > myconv;
std::wstring ws(1, CharT(0x1005));
@@ -52,7 +52,7 @@ void TestHelper<CharT, 2>::test() {
template <class CharT>
void TestHelper<CharT, 4>::test() {
- static_assert(std::is_same<CharT, wchar_t>::value, "");
+ static_assert((std::is_same<CharT, wchar_t>::value), "");
{
std::wstring_convert<std::codecvt_utf8<CharT> > myconv;
std::wstring ws(1, CharT(0x40003));
More information about the cfe-commits
mailing list