1 // RUN: %clang_cc1 -analyze -analyzer-checker=core,alpha.core -Werror %s -analyzer-store=region -verify
2 
3 // This test case illustrates that using '-analyze' overrides the effect of
4 // -Werror.  This allows basic warnings not to interfere with producing
5 // analyzer results.
6 
7 char* f(int *p) {
8   return p; // expected-warning{{incompatible pointer types}}
9 }
10 
11 void g(int *p) {
12   if (!p) *p = 0; // expected-warning{{null}}
13 }
14 
15