1 // RUN: %clang_analyze_cc1 -analyzer-checker=core,alpha.core -Werror %s -verify
2 // RUN: %clang_analyze_cc1 -analyzer-checker=core,alpha.core -Werror %s -analyzer-werror -verify=werror
4 // This test case illustrates that using '-analyze' overrides the effect of
5 // -Werror. This allows basic warnings not to interfere with producing
9 return p
; // expected-warning{{incompatible pointer types}} \
10 werror
-warning
{{incompatible pointer types
}}
14 if (!p
) *p
= 0; // expected-warning{{null}} \