gecko-dev/tools/clang-tidy/test/bugprone-assert-side-effect...

9 строки
139 B
C++

#include "structures.h"
// bugprone-assert-side-effect
void misc_assert_side_effect() {
int X = 0;
assert(X == 1);
assert(X = 1);
}