commit | dd463b8db0b07d2fdb99ffc7a7eb28eeb449c5d4 | [log] [tgz] |
---|---|---|
author | Ted Kremenek <kremenek@apple.com> | Sat Aug 16 00:45:40 2008 +0000 |
committer | Ted Kremenek <kremenek@apple.com> | Sat Aug 16 00:45:40 2008 +0000 |
tree | cd9af66078f4621feaa5083e8f5c13c6ef9091bc | |
parent | ddb2a3d55a24a1dbdf9152621642d9a4b4fc2f61 [diff] [blame] |
Enhance null-dereference checker test. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54834 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Analysis/null-deref-ps.c b/test/Analysis/null-deref-ps.c index 6da44d0..92e8daa 100644 --- a/test/Analysis/null-deref-ps.c +++ b/test/Analysis/null-deref-ps.c
@@ -77,4 +77,12 @@ return x; } - +int f8(int *p, int *q) { + if (!p) + if (p) + *p = 1; // no-warning + + if (q) + if (!q) + *q = 1; // no-warning +}