Followup to bug 451079 to move/add testcase files.

--HG--
rename : xpcom/tests/static-checker/e3.cpp => xpcom/tests/static-checker/onull2.cpp
This commit is contained in:
Benjamin Smedberg 2008-09-02 13:36:19 -04:00
parent e9783ae60e
commit 8bc1d968b3
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
typedef int PRUint32;
typedef PRUint32 nsresult;
char *pseudomalloc();
nsresult foo(char **result)
{
*result = pseudomalloc();
if (!*result)
return 1;
// fill in *result
return 0;
}