1 // RUN: %clang_analyze_cc1 -analyzer-checker=core -verify %s
3 #include "test-include.h"
6 void test_01(int *data
) {
8 *data
= 1; // expected-warning{{Dereference of null pointer}}
12 int res
= DIVXY(1,0); // expected-warning{{Division by zero}}
13 // expected-warning@-1{{division by zero is undefined}}
18 int res
= DIVYX(0,1); // expected-warning{{Division by zero}}
19 // expected-warning@-1{{division by zero is undefined}}