Move all C++ tests to cpp.

This commit is contained in:
2014-05-31 22:55:50 +04:00
parent 1c1c6fe543
commit 7cdff553c8
52 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
#include <iostream>
#include <iomanip>
int main ( void )
{
volatile double d = 0.00000001;
volatile double a = 90;
volatile double b = a + d;
volatile double c = b - a;
std::cout << std::setprecision(15) << "a = " << a << std::endl;
std::cout << std::setprecision(15) << "b = " << b << std::endl;
std::cout << std::setprecision(15) << "c = " << c << std::endl;
std::cout << std::setprecision(15) << "d = " << d << std::endl;
std::cout << "b == d -> " << (b == d) << std::endl;
return 0;
}