1#include <iostream>
2#include <stdexcept>
3
4#include <common/LocalDateTime.h>
5
6
7void fillStackWithGarbage()
8{
9 volatile uint64_t a = 0xAABBCCDDEEFF0011ULL;
10 volatile uint64_t b = 0x2233445566778899ULL;
11 std::cout << a + b << '\n';
12}
13
14void checkComparison()
15{
16 LocalDateTime a("2018-07-18 01:02:03");
17 LocalDateTime b("2018-07-18 01:02:03");
18
19 if (a != b)
20 throw std::runtime_error("Test failed");
21}
22
23
24int main(int, char **)
25{
26 fillStackWithGarbage();
27 checkComparison();
28 return 0;
29}
30