xrpld
Loading...
Searching...
No Matches
ubsan.cpp
1#include <iostream>
2#include <limits>
3
4int
5main()
6{
8 int volatile one = 1;
9 std::cout << "Current max: " << maxInt << std::endl;
10 int overflowed = maxInt + one;
11 std::cout << "Overflowed result: " << overflowed << std::endl;
12 return 0;
13}
T endl(T... args)
T max(T... args)