☰
Debian Codegraph
@
1:22.1.8-2
1:22.1.8-1
1:22.1.7-1
/
/
clang
/
docs
/
analyzer
/
checkers
/
dividezero_example.c
☽
☼
clang/docs/analyzer/checkers/dividezero_example.c
code
plain
raw
APACHE-2-LLVM-EXCEPTIONS
2003-2017 University of Illinois at Urbana-Champaign.
debian/copyright
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
}