mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 06:35:42 +00:00
eea415c9ec
--HG-- rename : xpcom/tests/static-checker/e3.cpp => xpcom/tests/static-checker/onull2.cpp
16 lines
198 B
C++
16 lines
198 B
C++
typedef int PRUint32;
|
|
typedef PRUint32 nsresult;
|
|
|
|
char *pseudomalloc();
|
|
|
|
nsresult foo(char **result)
|
|
{
|
|
*result = pseudomalloc();
|
|
if (!*result)
|
|
return 1;
|
|
|
|
// fill in *result
|
|
|
|
return 0;
|
|
}
|