1 // RUN: %clang_analyze_cc1 \
2 // RUN: -analyzer-checker=core -analyzer-config \
3 // RUN: silence-checkers=core.DivideZero \
6 void test_disable_core_div_by_zero() {
8 // expected-warning@-1 {{division by zero is undefined}}
9 // no-warning: 'Division by zero'
12 void test_disable_null_deref(int *p
) {
17 // expected-warning@-1 {{Array access (from variable 'p') results in a null pointer dereference}}