stdcpp/tsrc/Stdcpp_test/stdcxx/tstapps/localization/src/22.locale.num.put.cpp
branchRCL_3
changeset 57 2efc27d87e1c
parent 56 acd3cd4aaceb
equal deleted inserted replaced
56:acd3cd4aaceb 57:2efc27d87e1c
    48 #include <localedef.h>   // for rw_locales
    48 #include <localedef.h>   // for rw_locales
    49 #include <valcmp.h>      // for rw_equal
    49 #include <valcmp.h>      // for rw_equal
    50 #include"std_log_result.h"
    50 #include"std_log_result.h"
    51 #define LOG_FILENAME_LINE __FILE__, __LINE__
    51 #define LOG_FILENAME_LINE __FILE__, __LINE__
    52 int failures=0;
    52 int failures=0;
    53 
       
    54 
       
    55 #ifdef __ARMCC__
       
    56 #pragma diag_suppress 61
       
    57 #pragma diag_suppress 236
       
    58 #endif
       
    59 
    53 
    60 /**************************************************************************/
    54 /**************************************************************************/
    61 //#if 0
    55 //#if 0
    62 // set by the command line option handler in response to:
    56 // set by the command line option handler in response to:
    63 static int rw_opt_enable_num_get = 0;   // --enable-num_get
    57 static int rw_opt_enable_num_get = 0;   // --enable-num_get
  3433 
  3427 
  3434     Ios<charT> ios;
  3428     Ios<charT> ios;
  3435 
  3429 
  3436     ios.flags (std::ios_base::fmtflags ());
  3430     ios.flags (std::ios_base::fmtflags ());
  3437 
  3431 
  3438 
       
  3439 #define Abs(i)   ((i) < 0 ? (-i) : (i))
  3432 #define Abs(i)   ((i) < 0 ? (-i) : (i))
  3440 
       
  3441 #ifdef __ARMCC__
       
  3442 #pragma diag_suppress 47
       
  3443 #endif
       
  3444 
  3433 
  3445 #define ASSERT(T, N, T2, tname, t2name)                              \
  3434 #define ASSERT(T, N, T2, tname, t2name)                              \
  3446     do {                                                             \
  3435     do {                                                             \
  3447         /* number of expected calls to the do_put() member */        \
  3436         /* number of expected calls to the do_put() member */        \
  3448         const int expect   =  N + put.ncalls_ [put.test_ ## T];      \
  3437         const int expect   =  N + put.ncalls_ [put.test_ ## T];      \