Updated test case documentation

This commit is contained in:
Bartek Kryza
2022-12-13 00:34:23 +01:00
parent 3020ffd69f
commit 2d72d98234
87 changed files with 2658 additions and 2363 deletions

View File

@@ -28,6 +28,7 @@ struct A {
int a1() { return 0; }
int a2() { return 1; }
int a3() { return 2; }
int a4() { return 3; }
};
struct B {
@@ -47,6 +48,8 @@ struct C {
}
bool c2() const { return true; }
int c3(int x) { return x * 2; }
};
template <typename T> struct D {
@@ -67,13 +70,15 @@ int tmain()
result = a.a1();
}
else if (reinterpret_cast<uint64_t>(&a) % 64 == 0ULL) {
if (a.a2() > 2)
if (c.c3(a.a2()) > 2)
result = b.b1();
else
else if (a.a3() % 2)
result = b.b2();
else
result = 0;
}
else {
result = a.a3();
result = a.a4();
}
b.log();