gecko/xpcom/tests/static-checker/o12.cpp
Michael Wu d8e503c38b Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00

23 lines
339 B
C++

typedef int bool;
typedef int PRUint32;
typedef int PRInt32;
typedef PRUint32 nsresult;
typedef short PRUnichar;
#define NS_OUTPARAM __attribute__((user("NS_outparam")))
bool baz(int *p NS_OUTPARAM);
bool bar(int *p NS_OUTPARAM) {
return baz(p);
}
nsresult foo(int *p) {
if (bar(p)) {
return 0;
} else {
return 1;
}
}