xref: /openbsd-src/gnu/llvm/clang/docs/analyzer/checkers/dividezero_example.c (revision 256a93a44f36679bee503f12e49566c2183f6181)
1 void test(int z) {
2   if (z == 0)
3     int x = 1 / z; // warn
4 }
5 
6 void test() {
7   int x = 1;
8   int y = x % 0; // warn
9 }
10