Resolve the static-analysis bustage from bug 498938 by recognizing COND_EXPR.

This commit is contained in:
Benjamin Smedberg
2009-07-27 10:47:22 -04:00
parent 0dc3034072
commit 580bdcde4c
5 changed files with 28 additions and 3 deletions

View File

@@ -0,0 +1,12 @@
#include "nscore.h"
struct A
{
};
A* tfunc(int len)
{
A arr[5];
A* a = len <= 5 ? arr : new A[len];
return a;
}