Mozilla/mozilla/xpcom/tests/TestStackCrawl.cpp
waterson%netscape.com 2df14546e2 Add TestStackCrawl, which is currently broken :-(.
git-svn-id: svn://10.0.0.236/trunk@43469 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-18 04:53:51 +00:00

15 lines
228 B
C++

#include <stdio.h>
#include "nsISupportsUtils.h"
#include "nsTraceRefCnt.h"
int main(int argc, char* argv[])
{
char buf[16384];
nsTraceRefcnt::WalkTheStack(buf, sizeof(buf));
printf("%s\n", buf);
return 0;
}