diff options
author | Mike Stump <mrs@apple.com> | 2009-07-21 18:51:31 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-07-21 18:51:31 +0000 |
commit | 339d52a8ddcb345275ec48c7bab849a8943fa9f5 (patch) | |
tree | 1ba6812a6312937a8574c0995c1e3ddb575dec35 | |
parent | 044ca3f1ea1159525ceeb12dd46e85e6ec083ba4 (diff) |
Prep for new warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76610 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Analysis/null-deref-ps.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/Analysis/null-deref-ps.c b/test/Analysis/null-deref-ps.c index eb3812cf12..a31bcecf97 100644 --- a/test/Analysis/null-deref-ps.c +++ b/test/Analysis/null-deref-ps.c @@ -74,6 +74,7 @@ int f4_b() { else return; // expected-warning {{non-void function 'f4_b' should return a value}} *p += 10; // expected-warning{{Dereference of null pointer}} + return 0; } @@ -162,7 +163,7 @@ int* f7c2(int *x) { } -int f8(int *p, int *q) { +void f8(int *p, int *q) { if (!p) if (p) *p = 1; // no-warning |