Sign in
cobalt
/
cobalt
/
37ef7f8c0c60f95c9821b4d9f3273c9ef3666a79
/
.
/
src
/
third_party
/
llvm-project
/
clang
/
test
/
Analysis
/
division-by-zero.c
blob: 33bb6fa3a6f5df89b6e262a83a71142537c5b9e4 [
file
] [
log
] [
blame
]
// RUN: %clang_analyze_cc1 -analyzer-checker=unix.Malloc %s
// Do not crash due to division by zero
int
f
(
unsigned
int
a
)
{
if
(
a
<=
0
)
return
1
/
a
;
return
a
;
}