Ticket #7019: format_test3.cpp.patch

File format_test3.cpp.patch, 704 bytes (added by Mike Liang <mtliang@…>, 10 years ago)
  • libs/format/test/format_test3.cpp

     
    8888    s = str( format("%2$014x [%1%] %|2$05|\n") % (format("%05s / %s") % -18 % 7)
    8989             %group(showbase, -100)
    9090             );
    91     if( s != "0x0000ffffff9c [-0018 / 7] -0100\n" ){
     91    s2 = "0x0000ffffff9c [-0018 / 7] -0100\n" ;
     92#if defined(__SUNPRO_CC) && defined(_STLP_IOSTREAM)
     93    if ( sizeof(long) == 8 ) s2 = "0xffffffffffffff9c [-0018 / 7] -0100\n" ;
     94#endif
     95    if( s != s2 ){
    9296      cerr << s ;
    9397      BOOST_ERROR("nesting did not work");
    9498    }