diff options
Diffstat (limited to 'tests/exec/hexa.cpp')
-rw-r--r-- | tests/exec/hexa.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/exec/hexa.cpp b/tests/exec/hexa.cpp new file mode 100644 index 0000000..70feac9 --- /dev/null +++ b/tests/exec/hexa.cpp @@ -0,0 +1,15 @@ +#include <iostream> + +int main() { + std::cout << 0x100 << "\n"; + std::cout << 0xff << "\n"; + std::cout << 0xFF << "\n"; + int maxint = 0x7fffffff; + std::cout << maxint << "\n"; + int x = 0xDEADBEEF; + std::cout << x << "\n"; + x = 0xFFFFFFFF; + std::cout << x << "\n"; + x = 0x80000000; + std::cout << x << "\n"; +} |