bolt/deps/llvm-18.1.8/clang/docs/analyzer/checkers/dividezero_example.c
2025-02-14 19:21:04 +01:00

9 lines
117 B
C

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