//Note: Compile with the /I option specifying the
//Purify product directory, to include pure.h.
//Note: Link with the pure_api.c file, also located in the
//Purify product directory.
#include <windows.h>
#include "pure.h" //located in the Purify product directory
int
main(int, char **)
{
int *uninit = new int;
OutputDebugString("About to UMR");
PurifyPrintf("Value of uninit var: %d\n", *uninit);
OutputDebugString("Just did the UMR");
delete uninit;
return(0);
}
(C) Copyright IBM Corporation 1992, 2010.