Test Case: index-id-example

Tools:gcc34, msvc80, msvc71
Date:2006-03-13 01:50:21.484000

Code:

#include <iostream>
#include <ostream>

#include "imp/signed_int.hpp"

unsigned const Bits = 256; // for example.

imp::signed_int< Bits >
    default_constructed, // = 0
    int_constructed( 2 ),
    float_constructed( 2e7 ),
    cstr_constructed( "0x123456789ABCDEF" ), //  explicit
    copy_constructed( int_constructed );

int main()
{
  default_constructed = int_constructed * float_constructed;
  default_constructed /= copy_constructed;
  default_constructed += cstr_constructed;
  default_constructed = -default_constructed;
  std::cout << default_constructed << std::endl;
}

Test Result index-id-example/gcc34

Tool gcc34 Passed

Output

-81985529236486895

Test Result index-id-example/msvc80

Tool msvc80 Passed

Output

-81985529236486895

Test Result index-id-example/msvc71

Tool msvc71 Passed

Output

-81985529236486895