bolt/deps/llvm-18.1.8/clang/docs/analyzer/checkers/dividezero_example.c

10 lines
117 B
C
Raw Normal View History

2025-02-14 19:21:04 +01:00
void test(int z) {
if (z == 0)
int x = 1 / z; // warn
}
void test() {
int x = 1;
int y = x % 0; // warn
}