stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Sebor <se...@roguewave.com>
Subject Re: svn commit: r668340 - /stdcxx/branches/4.3.x/tests/utilities/20.meta.unary.prop.cpp
Date Mon, 23 Jun 2008 16:58:32 GMT
vitek@apache.org wrote:
> Author: vitek
> Date: Mon Jun 16 16:07:26 2008
> New Revision: 668340
> 
> URL: http://svn.apache.org/viewvc?rev=668340&view=rev
> Log:
> 2008-06-16  Travis Vitek  <vitek@roguewave.com>
> 
> 	STDCXX-920
> 	* tests/utilities/20.meta.unary.prop.cpp: Use size_t instead
> 	of _RWSTD_SIZE_T. Update test to correctly reflect behaviors
> 	required by standard.
> 
> 
> Modified:
>     stdcxx/branches/4.3.x/tests/utilities/20.meta.unary.prop.cpp
> 
> Modified: stdcxx/branches/4.3.x/tests/utilities/20.meta.unary.prop.cpp
> URL: http://svn.apache.org/viewvc/stdcxx/branches/4.3.x/tests/utilities/20.meta.unary.prop.cpp?rev=668340&r1=668339&r2=668340&view=diff
> ==============================================================================
> --- stdcxx/branches/4.3.x/tests/utilities/20.meta.unary.prop.cpp (original)
> +++ stdcxx/branches/4.3.x/tests/utilities/20.meta.unary.prop.cpp Mon Jun 16 16:07:26
2008
> @@ -27,6 +27,8 @@
>   *
>   **************************************************************************/
>  
> +#include <stddef.h>

Any reason why this shouldn't be <cstddef> like in all other
tests?

Martin

> +
>  #include <rw_driver.h>
>  
>  // compile out all test code if extensions disabled
> @@ -208,15 +210,15 @@
>  
>  void test_trait (int line,
>                   const char* trait, const char* type,
> -                 _RWSTD_SIZE_T value, _RWSTD_SIZE_T expect)
> +                 size_t value, size_t expect)
>  {
>      rw_assert (value == expect, 0, line,
>                 "%s<%s>::value is %zu, expected %zu",
>                 trait, type, value, expect);
>  }
>  
> -void test_trait (int line, _RWSTD_SIZE_T depth,
> -                 _RWSTD_SIZE_T value, _RWSTD_SIZE_T expect,
> +void test_trait (int line, size_t depth,
> +                 size_t value, size_t expect,
>                   const char* trait, const char* type)
>  {
>      rw_assert (value == expect, 0, line,
> @@ -374,9 +376,9 @@
>  static void test_is_trivial ()
>  {
>      TEST (std::is_trivial, long, true);
> -    TEST (std::is_trivial, C long, false);
> +    TEST (std::is_trivial, C long, true);
>      TEST (std::is_trivial, V long, true);
> -    TEST (std::is_trivial, CV long, false);
> +    TEST (std::is_trivial, CV long, true);
>  
>      TEST (std::is_trivial, long&, false);
>      TEST (std::is_trivial, C long&, false);
> @@ -418,6 +420,7 @@
>  static void test_is_standard_layout ()
>  {
>      TEST (std::is_standard_layout, long, true);
> +    TEST (std::is_standard_layout, non_empty_t, true);
>  
>      // no non-static data members of non-standard-layout type
>      TEST (std::is_standard_layout, member_t<access_controlled_t>, false);
> 
> 


Mime
View raw message