gecko/xpcom/tests/static-checker/o3.cpp

14 lines
185 B
C++

typedef int PRUint32;
typedef int PRInt32;
typedef PRUint32 nsresult;
nsresult foo(__attribute__((user("outparam"))) int *a) {
int x;
if (x == 0) {
*a = 1;
}
return x;
}