Author: sebor
Date: Sat Oct 20 14:37:49 2007
New Revision: 586809

URL: http://svn.apache.org/viewvc?rev=586809&view=rev
Log:
2007-10-20  Martin Sebor  <[EMAIL PROTECTED]>

        Merged rev 586808 from branches/stdcxx/4.2.x.
        * 26.valarray.cassign.cpp (run_test): Disabled tests exercising
        valarray specializations on a user-defined type for 4.2.0 and
        prior since they are known to fail to compile due to STDCXX-512.

Modified:
    incubator/stdcxx/branches/4.2.0/tests/numerics/26.valarray.cassign.cpp

Modified: incubator/stdcxx/branches/4.2.0/tests/numerics/26.valarray.cassign.cpp
URL: 
http://svn.apache.org/viewvc/incubator/stdcxx/branches/4.2.0/tests/numerics/26.valarray.cassign.cpp?rev=586809&r1=586808&r2=586809&view=diff
==============================================================================
--- incubator/stdcxx/branches/4.2.0/tests/numerics/26.valarray.cassign.cpp 
(original)
+++ incubator/stdcxx/branches/4.2.0/tests/numerics/26.valarray.cassign.cpp Sat 
Oct 20 14:37:49 2007
@@ -801,10 +801,23 @@
 {
 #undef TEST
 #define TEST(T)   test_op_assign ((const T*)0, #T)
+
     TEST (int);
     TEST (double);
 
+#if 0x04020000 <= _RWSTD_VER
+
+    // test fails to compile with stdcxx 4.2.0 and prior due to
+    // STDCXX-512: http://issues.apache.org/jira/browse/STDCXX-512
+    rw_warn (0, 0, __LINE__,
+             "test of UserClass disabled in stdcxx 4.2.0 and prior "
+             "due to STDCXX-512");
+
+#else   // stdcxx > 4.2.0
+
     TEST (UserClass);
+
+#endif   // stdcxx version
 
     return 0;
 }


Reply via email to