gecko/xpcom/tests/static-checker/onull.cpp

16 lines
198 B
C++
Raw Normal View History

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