C++: Slightly tweak nullness test and update test results

This commit is contained in:
Jeroen Ketema
2022-07-12 15:23:33 +02:00
parent d63b0946d9
commit e5eabc4e47
3 changed files with 12 additions and 6 deletions

View File

@@ -4,7 +4,7 @@ long __builtin_expect(long);
void f(int *v) {
int *w;
bool b;
bool b, c;
if (v) {}
if (!v) {}
@@ -19,5 +19,7 @@ void f(int *v) {
if (true && !v) {}
if (!v && true) {}
if (b = !v) {}
if (b = !v; b) {}
if (c = !v; c) {}
if (int *x = v; x) {}
if (int *y = v) {}
}