mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
e9783ae60e
commit
8bc1d968b3
15
xpcom/tests/static-checker/onull.cpp
Normal file
15
xpcom/tests/static-checker/onull.cpp
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user