fune/tools/clang-tidy/test/clang-analyzer-core.DivideZero.cpp

4 lines
54 B
C++

void test(int z) {
if (z == 0)
int x = 1 / z;
}