Improved the test a little.

git-svn-id: svn://10.0.0.236/trunk@70606 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
wtc%netscape.com 2000-05-22 19:52:56 +00:00
parent 05b72d5cc8
commit a0a15ff488

View File

@ -26,6 +26,8 @@
#include <stdio.h>
#include <stdlib.h>
static void Noop(void) { }
static void Fail(void)
{
printf("FAIL\n");
@ -37,6 +39,13 @@ int main()
int foo = 1;
char *ptr = NULL;
/* this fails to compile with the old definition of PR_DELETE */
if (foo)
PR_DELETE(ptr);
else
Noop();
/* this nests incorrectly with the old definition of PR_FREEIF */
if (foo)
PR_FREEIF(ptr);
else