ccc: Add --analyze test case.

llvm-svn: 62654
This commit is contained in:
Daniel Dunbar 2009-01-21 01:22:37 +00:00
parent 989ab477d2
commit 309052a84c
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
// RUN: xcc --analyze %s -o %t &&
// RUN: grep '<string>Dereference of null pointer.</string>' %t
void f(int *p) {
if (!p)
*p = 0;
}