[analyzer] The compiler warning was disabling the analyzer in this test.

llvm-svn: 144946
This commit is contained in:
Anna Zaks 2011-11-18 00:45:20 +00:00
parent 6949f38985
commit 1df54a8bc8
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@ int* f10(int* p, signed char x, int y) {
// This tests that our symbolication worked, and that we correctly test
// x against 0 (with the same bitwidth).
if (!x) {
if (!p) return; // expected-warning {{non-void function 'f10' should return a value}}
if (!p) return 0;
*p = 10;
}
else p = 0;